fix(server): sending invite email

This commit is contained in:
a.bouhuolia
2023-05-05 00:28:57 +02:00
parent 4d44ce4c7f
commit 3ceb9adda2
11 changed files with 60 additions and 34 deletions

View File

@@ -74,17 +74,15 @@ export default class InviteTenantUserService implements IInviteUserService {
/**
* Re-send user invite.
* @param {number} tenantId -
* @param {string} email -
* @param {number} tenantId -
* @param {string} email -
* @return {Promise<{ invite: IUserInvite }>}
*/
public async resendInvite(
tenantId: number,
userId: number,
authorizedUser: ISystemUser
): Promise<{
user: ITenantUser;
}> {
): Promise<{ user: ITenantUser }> {
// Retrieve the user by id or throw not found service error.
const user = await this.getUserByIdOrThrowError(tenantId, userId);