mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix(api): update options type
This commit is contained in:
parent
6c9541a230
commit
b6f812c3f8
@ -8,6 +8,7 @@
|
||||
|
||||
import { ForbiddenException, NotFoundException } from '@nestjs/common';
|
||||
import { JwtService } from '@nestjs/jwt';
|
||||
import { ISendMailOptions } from '@nestjs-modules/mailer';
|
||||
import { Session as ExpressSession } from 'express-session';
|
||||
import { SentMessageInfo } from 'nodemailer';
|
||||
|
||||
@ -64,7 +65,7 @@ describe('UserController', () => {
|
||||
{
|
||||
provide: MailerService,
|
||||
useValue: {
|
||||
sendMail(_options: unknown): Promise<SentMessageInfo> {
|
||||
sendMail(_options: ISendMailOptions): Promise<SentMessageInfo> {
|
||||
return Promise.resolve('Mail sent successfully');
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user