feat: throw error invalid otp instead of ok

This commit is contained in:
Methapon2001 2025-02-21 09:23:49 +07:00
parent 776004b5be
commit d2d4036bcd

View file

@ -139,8 +139,8 @@ export class verificationController extends Controller {
});
return dataCustomer;
} else {
return "OTP ไม่ถูกต้อง";
}
throw new HttpError(HttpStatus.BAD_REQUEST, "Invalid OTP", "invalidOTP");
}
}