diff --git a/src/controllers/03-customer-branch-controller.ts b/src/controllers/03-customer-branch-controller.ts index fcf6118..b3edd5a 100644 --- a/src/controllers/03-customer-branch-controller.ts +++ b/src/controllers/03-customer-branch-controller.ts @@ -194,7 +194,7 @@ export class CustomerBranchController extends Controller { : undefined, AND: { customer: isSystem(req.user) - ? undefined + ? { registeredBranchId } : { registeredBranch: { AND: { id: registeredBranchId },