Merge pull request #101 from Hexastack/100-issue-send-user-invitation

fix(api): jwt plain object issue
This commit is contained in:
Mohamed Marrouchi
2024-09-29 19:05:56 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ export class InvitationService extends BaseService<
* @returns The newly created invitation with the generated token.
*/
async create(dto: InvitationCreateDto): Promise<Invitation> {
const jwt = await this.sign(dto);
const jwt = await this.sign({ ...dto });
if (this.mailerService) {
try {
const defaultLanguage = await this.languageService.getDefaultLanguage();

View File

@@ -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 {