From d6be5e959ceacaf2ad05ff008615b39714565031 Mon Sep 17 00:00:00 2001 From: yassinedorbozgithub Date: Sun, 29 Sep 2024 18:14:07 +0100 Subject: [PATCH] fix(api): passwordReset jwt plain object --- api/src/user/services/passwordReset.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/user/services/passwordReset.service.ts b/api/src/user/services/passwordReset.service.ts index f9a1e4d..74780ea 100644 --- a/api/src/user/services/passwordReset.service.ts +++ b/api/src/user/services/passwordReset.service.ts @@ -56,7 +56,7 @@ export class PasswordResetService { if (!user) { throw new NotFoundException('User not found'); } - const jwt = await this.sign(dto); + const jwt = await this.sign({ ...dto }); if (this.mailerService) { try {