resolve ts errors

This commit is contained in:
Alex Holliday committed 2026-03-06 09:14:12 -08:00
1 parent 3063b9cf22
commit 69e98a51ec
1 file changed
+10 -2
+10 -2
View File
@@ -141,7 +141,7 @@ export class UserService implements IUserService {
message: "New user created", message: "New user created",
service: SERVICE_NAME, service: SERVICE_NAME,
method: "registerUser", method: "registerUser",
details: newUser.id, details: { userId: newUser.id },
}); });
delete newUser.profileImage; delete newUser.profileImage;
@@ -205,7 +205,7 @@ export class UserService implements IUserService {
message: "New user created by superadmin", message: "New user created by superadmin",
service: SERVICE_NAME, service: SERVICE_NAME,
method: "createUser", method: "createUser",
details: newUser.id, details: { userId: newUser.id },
}); });
newUser.profileImage = undefined; newUser.profileImage = undefined;
@@ -280,6 +280,14 @@ export class UserService implements IUserService {
email, email,
url, 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); const msgId = await this.emailService.sendEmail(email, "Checkmate Password Reset", html);
return msgId; return msgId;
}; };