getting organizations from the backend

This commit is contained in:
metacryst
2026-01-11 04:53:55 -06:00
parent 13cdff7a5f
commit 434ecac47a
7 changed files with 47 additions and 29 deletions

View File

@@ -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
}
}
}