fix(api): invitation jwt plain object

This commit is contained in:
yassinedorbozgithub 2024-09-29 18:13:50 +01:00
parent 44a9e23c2a
commit f882943eec

View File

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