Skip to content

Commit

Permalink
Merge pull request #101 from Hexastack/100-issue-send-user-invitation
Browse files Browse the repository at this point in the history
fix(api): jwt plain object issue
  • Loading branch information
marrouchi authored Sep 29, 2024
2 parents 44a9e23 + d6be5e9 commit b735d5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/src/user/services/invitation.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion api/src/user/services/passwordReset.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b735d5e

Please sign in to comment.