fix: error wrong cond
This commit is contained in:
parent
edb9e34a2b
commit
1ac03f3f02
1 changed files with 1 additions and 1 deletions
|
|
@ -441,7 +441,7 @@ export class CustomerController extends Controller {
|
|||
|
||||
if (
|
||||
customerBranch &&
|
||||
relation.find((a) => !customerBranch.find((b) => a.id !== b.id && a.branchNo === b.branchNo))
|
||||
relation.find((a) => customerBranch.find((b) => a.id !== b.id && a.branchNo === b.branchNo))
|
||||
) {
|
||||
throw new HttpError(
|
||||
HttpStatus.BAD_REQUEST,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue