mirror of
https://github.com/hexastack/hexabot
synced 2024-11-27 22:42:11 +00:00
Merge pull request #101 from Hexastack/100-issue-send-user-invitation
fix(api): jwt plain object issue
This commit is contained in:
commit
b735d5ebd1
@ -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();
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user