chore: change name

This commit is contained in:
Methapon2001 2025-02-25 16:58:02 +07:00
parent b8ccfbbc02
commit ae37e7c955

View file

@ -6,7 +6,7 @@ import { RequestWithLineUser } from "../interfaces/user";
import HttpError from "../interfaces/http-error"; import HttpError from "../interfaces/http-error";
import HttpStatus from "../interfaces/http-status"; import HttpStatus from "../interfaces/http-status";
type SendEmail = { type SendOTP = {
identityNumber: string; identityNumber: string;
email: string; email: string;
}; };
@ -29,7 +29,7 @@ export class verificationController extends Controller {
} }
@Post("/send-otp") @Post("/send-otp")
public async sendOTP(@Body() body: SendEmail) { public async sendOTP(@Body() body: SendOTP) {
if ( if (
![ ![
process.env.SMTP_HOST, process.env.SMTP_HOST,