fix: employee code
This commit is contained in:
parent
d97b1260cf
commit
d8a6565abe
4 changed files with 28 additions and 28 deletions
|
|
@ -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",
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue