improve test coverage

This commit is contained in:
Alex Holliday committed 2025-11-24 22:49:55 +00:00
1 parent d5f1032bdf
commit 1e26fb1e3b
15 files changed
+388 -71

No files matched your search

+3 -5
View File
@@ -49,11 +49,9 @@ class RecoveryController implements IRecoveryController {
const recoveryToken = await this.recoveryService.create(user._id);
// Don't wait for email to be sent
this.emailService
.sendGeneric(
user.email,
"Password Recovery",
`Your recovery link is: ${config.ORIGIN}/recovery/${recoveryToken}`
)
.sendGeneric(user.email, "Password Recovery", {
text: `Your recovery link is: ${config.ORIGIN}/recovery/${recoveryToken}`,
})
.catch((error) => {
logger.error(error);
});