mirror of
https://github.com/hexastack/hexabot
synced 2024-11-28 06:52:20 +00:00
fix(api): invitation jwt plain object
This commit is contained in:
parent
44a9e23c2a
commit
f882943eec
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user