resolve ts errors

This commit is contained in:
Alex Holliday
2026-03-06 09:14:12 -08:00
parent 3063b9cf22
commit 69e98a51ec
+10 -2
View File
@@ -141,7 +141,7 @@ export class UserService implements IUserService {
message: "New user created",
service: SERVICE_NAME,
method: "registerUser",
details: newUser.id,
details: { userId: newUser.id },
});
delete newUser.profileImage;
@@ -205,7 +205,7 @@ export class UserService implements IUserService {
message: "New user created by superadmin",
service: SERVICE_NAME,
method: "createUser",
details: newUser.id,
details: { userId: newUser.id },
});
newUser.profileImage = undefined;
@@ -280,6 +280,14 @@ export class UserService implements IUserService {
email,
url,
});
if (!html) {
throw new AppError({
message: "Failed to build password reset email HTML",
service: SERVICE_NAME,
method: "requestRecovery",
status: 500,
});
}
const msgId = await this.emailService.sendEmail(email, "Checkmate Password Reset", html);
return msgId;
};