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 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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue