chore: change name
This commit is contained in:
parent
b8ccfbbc02
commit
ae37e7c955
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue