getting organizations from the backend
This commit is contained in:
@@ -18,7 +18,6 @@ export default class Database {
|
||||
let eValues = Object.values(edgeModels)
|
||||
for(let i = 0; i < eValues.length; i++) {
|
||||
let key = eValues[i].constructor.name
|
||||
key = key.toLowerCase() + "s"
|
||||
this[key] = eValues[i]
|
||||
}
|
||||
this.loadData()
|
||||
@@ -127,7 +126,7 @@ export default class Database {
|
||||
let indices = model.indices
|
||||
if(i >= indices[0] && i < indices[1]) {
|
||||
let prefix = model.prefix
|
||||
data.nodes[prefix + "-" + entry.id] = entry
|
||||
data.edges[prefix + "-" + entry.id] = entry
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user