expose is active in service

This commit is contained in:
2024-10-27 14:10:18 +07:00
parent 9e0e97a560
commit 2369275237
4 changed files with 54 additions and 5 deletions

View File

@@ -2,6 +2,7 @@ import { Injectable, Logger } from '@nestjs/common';
import { MailerService } from '@nestjs-modules/mailer';
import { OpenaiService } from '../OpenAI/openai.service';
import { User } from '@prisma/client';
@Injectable()
export class MailService {
@@ -34,7 +35,7 @@ export class MailService {
to: string,
subject: string,
template: string,
context: any,
context: User,
) {
try {
const result = await this.mailerService.sendMail({