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,