fix: error wrong cond

This commit is contained in:
Methapon2001 2024-07-03 17:44:33 +07:00
parent edb9e34a2b
commit 1ac03f3f02

View file

@ -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,