feat: add filter registeredBranch
This commit is contained in:
parent
f3e4526c16
commit
b2b0d15efd
1 changed files with 2 additions and 0 deletions
|
|
@ -171,6 +171,7 @@ export class CustomerBranchController extends Controller {
|
|||
@Request() req: RequestWithUser,
|
||||
@Query() zipCode?: string,
|
||||
@Query() customerId?: string,
|
||||
@Query() registeredBranchId?: string,
|
||||
@Query() status?: Status,
|
||||
@Query() includeCustomer?: boolean,
|
||||
@Query() query: string = "",
|
||||
|
|
@ -196,6 +197,7 @@ export class CustomerBranchController extends Controller {
|
|||
? undefined
|
||||
: {
|
||||
registeredBranch: {
|
||||
AND: { id: registeredBranchId },
|
||||
OR: permissionCond(req.user),
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue