fixing bug with getting organizations
This commit is contained in:
@@ -25,6 +25,10 @@ export default class Database {
|
||||
this.loadData()
|
||||
}
|
||||
|
||||
getCurrentIndex(model) {
|
||||
return model.indices[1] - model.indices[0]
|
||||
}
|
||||
|
||||
getNextIndex(model) {
|
||||
return model.indices[1] - model.indices[0] + 1
|
||||
}
|
||||
@@ -65,7 +69,6 @@ export default class Database {
|
||||
...edge
|
||||
}
|
||||
if(!toAdd.created) toAdd.created = global.currentTime()
|
||||
console.log(toAdd)
|
||||
let schema = model.schema
|
||||
let result = schema.safeParse(toAdd)
|
||||
if(result.success) {
|
||||
|
||||
Reference in New Issue
Block a user