From f882943eecab712bd8a7824cad39cd8ea9598913 Mon Sep 17 00:00:00 2001 From: yassinedorbozgithub Date: Sun, 29 Sep 2024 18:13:50 +0100 Subject: [PATCH 1/2] fix(api): invitation jwt plain object --- api/src/user/services/invitation.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/user/services/invitation.service.ts b/api/src/user/services/invitation.service.ts index a6b8b48..f4da228 100644 --- a/api/src/user/services/invitation.service.ts +++ b/api/src/user/services/invitation.service.ts @@ -61,7 +61,7 @@ export class InvitationService extends BaseService< * @returns The newly created invitation with the generated token. */ async create(dto: InvitationCreateDto): Promise { - const jwt = await this.sign(dto); + const jwt = await this.sign({ ...dto }); if (this.mailerService) { try { const defaultLanguage = await this.languageService.getDefaultLanguage(); From d6be5e959ceacaf2ad05ff008615b39714565031 Mon Sep 17 00:00:00 2001 From: yassinedorbozgithub Date: Sun, 29 Sep 2024 18:14:07 +0100 Subject: [PATCH 2/2] 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 {