no message

This commit is contained in:
Kittapath 2024-07-10 15:01:56 +07:00
parent bfe281f3f3
commit a7a8f47da0
2 changed files with 36 additions and 37 deletions

View file

@ -2079,9 +2079,9 @@ export class ProfileController extends Controller {
// chkDigit = cal % 10;
// }
if (citizenIdDigits[12] !== chkDigit) {
throw new HttpError(HttpStatus.NOT_FOUND, "ข้อมูลรหัสบัตรประจำตัวประชาชนไม่ถูกต้อง");
}
// if (citizenIdDigits[12] !== chkDigit) {
// throw new HttpError(HttpStatus.NOT_FOUND, "ข้อมูลรหัสบัตรประจำตัวประชาชนไม่ถูกต้อง");
// }
}
const record = await this.profileRepo.findOneBy({ id });