diff --git a/src/nodemailer/dto/nodemailer-message.dto.ts b/src/nodemailer/dto/nodemailer-message.dto.ts index b7cd8cb..e188f3a 100644 --- a/src/nodemailer/dto/nodemailer-message.dto.ts +++ b/src/nodemailer/dto/nodemailer-message.dto.ts @@ -1,12 +1,12 @@ -import { IsEmail, IsInt, IsString } from 'class-validator'; +import { IsEmail, IsString } from 'class-validator'; export class NodemailerMessageDto { @IsEmail() email: string; @IsString() - subject: string; + html: string; @IsString() - html: string; + subject: string; } diff --git a/src/nodemailer/nodemailer.service.ts b/src/nodemailer/nodemailer.service.ts index bcd9a5c..38ede92 100644 --- a/src/nodemailer/nodemailer.service.ts +++ b/src/nodemailer/nodemailer.service.ts @@ -1,6 +1,6 @@ +import * as nodemailer from 'nodemailer'; import { Injectable } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; -import * as nodemailer from 'nodemailer'; import { NodemailerMessageDto } from './dto/nodemailer-message.dto'; @Injectable()