Update org-dal.ts

This commit is contained in:
Daniel Hougaard
2024-02-22 05:00:26 +01:00
parent 82fe0bb5c4
commit cee8ead78a
+1
View File
@@ -110,6 +110,7 @@ export const orgDALFactory = (db: TDbClient) => {
db.ref("id").withSchema(TableName.Users).as("userId"), db.ref("id").withSchema(TableName.Users).as("userId"),
db.ref("publicKey").withSchema(TableName.UserEncryptionKey) db.ref("publicKey").withSchema(TableName.UserEncryptionKey)
) )
.where({ isGhost: false })
.whereIn("email", emails); .whereIn("email", emails);
return members.map(({ email, firstName, lastName, userId, publicKey, ...data }) => ({ return members.map(({ email, firstName, lastName, userId, publicKey, ...data }) => ({
...data, ...data,