mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-11 17:59:08 +00:00
FEAT: resend invite
This commit is contained in:
@@ -127,6 +127,7 @@ export class UsersService implements OnModuleInit {
|
||||
this.adjustUsersPayload([user]);
|
||||
return { user };
|
||||
}
|
||||
|
||||
async batchCreateUser({ users }: BatchCreateUserReq) {
|
||||
const usersToCreate: UserCreateRequest[] = users.map(
|
||||
({ roleNames, email, department, hierarchy, jobTitle, name }) => ({
|
||||
@@ -155,6 +156,11 @@ export class UsersService implements OnModuleInit {
|
||||
})),
|
||||
};
|
||||
}
|
||||
|
||||
async resendInvite(body: IdRequest) {
|
||||
return lastValueFrom(this.usersClientService.UserResendInvite(body));
|
||||
}
|
||||
|
||||
async assignRoleToUser(body: AssignRoleToUserRequest) {
|
||||
return lastValueFrom(this.usersClientService.AssignRoleToUser(body));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user