fixing bug with getting organizations

This commit is contained in:
metacryst
2026-01-13 13:30:00 -06:00
parent 6efc5b6f97
commit b0953f44fa
5 changed files with 22 additions and 8 deletions

View File

@@ -38,8 +38,8 @@ export default class AuthHandler {
const user = db.members.getByEmail(email);
let connections = db.MEMBER_IN_NETWORK.getByFrom(db.members.prefix + "-" + user.id)
let userOrgs = connections.map((v) => {
return db.networks.get(v.id)
let userOrgs = connections.map((c) => {
return db.networks.get(c.to)
})
console.log(userOrgs)
res.send({ email: user.email, name: user.firstName + " " + user.lastName, networks: userOrgs});