From ae37e7c9552a1de12dd20c5f4260d08980d49649 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Tue, 25 Feb 2025 16:58:02 +0700 Subject: [PATCH] chore: change name --- src/controllers/09-verification-controller.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/09-verification-controller.ts b/src/controllers/09-verification-controller.ts index aa1bb4f..4b3809f 100644 --- a/src/controllers/09-verification-controller.ts +++ b/src/controllers/09-verification-controller.ts @@ -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,