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

@@ -16,6 +16,11 @@ export default class Network {
})
.strict()
get(id) {
let index = this.indices[0] + (id - 1)
return global.db.nodes[index]
}
save(n) {
let id = `${this.prefix}-${n.id}`
let result = this.schema.safeParse(n)
@@ -39,8 +44,4 @@ export default class Network {
}
this.save(toSave)
}
get(id) {
return this.entries[this.ids[`${this.prefix}-${id}`]]
}
}