fix: employee code

This commit is contained in:
puriphat 2024-06-14 06:19:15 +00:00
parent d97b1260cf
commit d8a6565abe
4 changed files with 28 additions and 28 deletions

View file

@ -54,7 +54,7 @@ export class EmployeeOtherInfo extends Controller {
throw new HttpError(
HttpStatus.BAD_REQUEST,
"Employee cannot be found.",
"missing_or_invalid_parameter",
"employeeBadReq",
);
const record = await prisma.employeeOtherInfo.create({
@ -82,7 +82,7 @@ export class EmployeeOtherInfo extends Controller {
throw new HttpError(
HttpStatus.NOT_FOUND,
"Employee other info cannot be found.",
"data_not_found",
"employeeOtherNotFound",
);
}
@ -106,7 +106,7 @@ export class EmployeeOtherInfo extends Controller {
throw new HttpError(
HttpStatus.NOT_FOUND,
"Employee other info cannot be found.",
"data_not_found",
"employeeOtherNotFound",
);
}