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 HttpStatus from "../interfaces/http-status";
type SendEmail = {
type SendOTP = {
identityNumber: string;
email: string;
};
@ -29,7 +29,7 @@ export class verificationController extends Controller {
}
@Post("/send-otp")
public async sendOTP(@Body() body: SendEmail) {
public async sendOTP(@Body() body: SendOTP) {
if (
![
process.env.SMTP_HOST,