Update org-dal.ts

This commit is contained in:
Daniel Hougaard
2024-02-21 08:51:46 +01:00
parent 82fe0bb5c4
commit cee8ead78a

View File

@@ -110,6 +110,7 @@ export const orgDALFactory = (db: TDbClient) => {
db.ref("id").withSchema(TableName.Users).as("userId"),
db.ref("publicKey").withSchema(TableName.UserEncryptionKey)
)
.where({ isGhost: false })
.whereIn("email", emails);
return members.map(({ email, firstName, lastName, userId, publicKey, ...data }) => ({
...data,