fixing bug with getting organizations
This commit is contained in:
@@ -29,7 +29,7 @@ export default class Member {
|
||||
if(network) {
|
||||
global.db.edge.add({
|
||||
type: "IN",
|
||||
from: `${this.prefix}-${global.db.getNextIndex(this)}`,
|
||||
from: `${this.prefix}-${global.db.getCurrentIndex(this)}`,
|
||||
to: "NETWORK-1"
|
||||
})
|
||||
}
|
||||
|
||||
@@ -18,8 +18,10 @@ export default class Network {
|
||||
})
|
||||
.strict()
|
||||
|
||||
get(id) {
|
||||
get(stringID) {
|
||||
let id = stringID.split("-")[1]
|
||||
let index = this.indices[0] + (id - 1)
|
||||
console.log("networkget", index, id, global.db.nodes[index-1])
|
||||
return global.db.nodes[index]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user