refactor invite module into class

This commit is contained in:
Alex Holliday committed 2025-07-29 19:53:11 -07:00
1 parent f934bbf829
commit ca02ed9d18
5 files changed
+60 -102

No files matched your search

+1 -1
View File
@@ -31,7 +31,7 @@ class UserService {
// If superAdmin exists, a token should be attached to all further register requests
const superAdminExists = await this.db.checkSuperadmin();
if (superAdminExists) {
const invitedUser = await this.db.getInviteTokenAndDelete(user.inviteToken);
const invitedUser = await this.db.inviteModule.getInviteTokenAndDelete(user.inviteToken);
user.role = invitedUser.role;
user.teamId = invitedUser.teamId;
} else {