fix: remove users with capitalized usernames from projects

This commit is contained in:
Daniel Hougaard
2025-04-01 04:26:29 +04:00
parent cd4f2cccf8
commit e8dd8a908d

View File

@@ -423,7 +423,7 @@ export const projectMembershipServiceFactory = ({
const usernamesAndEmails = [...emails, ...usernames];
const projectMembers = await projectMembershipDAL.findMembershipsByUsername(projectId, [
...new Set(usernamesAndEmails.map((element) => element.toLowerCase()))
...new Set(usernamesAndEmails.map((element) => element))
]);
if (projectMembers.length !== usernamesAndEmails.length) {