fix edit
This commit is contained in:
parent
08bbeff5a7
commit
8e71d8e616
1 changed files with 5 additions and 3 deletions
|
|
@ -110,10 +110,12 @@ export class EmployeePosLevelController extends Controller {
|
|||
|
||||
const chkEmpPosLevel = await this.employeePosLevelRepository.findOne({
|
||||
where: {
|
||||
id: Not(id),
|
||||
posLevelName: requestBody.posLevelName,
|
||||
id: Not(id),
|
||||
posLevelName: requestBody.posLevelName,
|
||||
posTypeId: requestBody.posTypeId,
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
if (chkEmpPosLevel) {
|
||||
throw new HttpError(
|
||||
HttpStatusCode.NOT_FOUND,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue