refactor invite module into class
This commit is contained in:
1 parent
f934bbf829
commit
ca02ed9d18
5 files changed
+60
-102
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user