getting org members

This commit is contained in:
metacryst
2026-01-13 14:27:44 -06:00
parent 134a6b8471
commit 237bbfedd4
7 changed files with 59 additions and 37 deletions

View File

@@ -17,10 +17,20 @@ export default class MEMBER_IN_NETWORK {
})
.strict()
getByFrom(fromID) {
getByMember(stringID) {
let result = []
for(let i = this.indices[0]; i < this.indices[1]; i++) {
if(global.db.edges[i].from === fromID) {
if(global.db.edges[i].from === stringID) {
result.push(global.db.edges[i])
}
}
return result
}
getByNetwork(id) {
let result = []
for(let i = this.indices[0]; i < this.indices[1]; i++) {
if(global.db.edges[i].to === `${global.db.networks.prefix}-${id}`) {
result.push(global.db.edges[i])
}
}