fix: wrong stats count
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 5s
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 5s
This commit is contained in:
parent
f98028fe6e
commit
0f648ab8a3
1 changed files with 1 additions and 5 deletions
|
|
@ -47,11 +47,7 @@ export class RequestDataController extends Controller {
|
||||||
async getRequestDataStats(@Request() req: RequestWithUser) {
|
async getRequestDataStats(@Request() req: RequestWithUser) {
|
||||||
const where = {
|
const where = {
|
||||||
quotation: {
|
quotation: {
|
||||||
customerBranch: {
|
registeredBranch: { OR: permissionCond(req.user) },
|
||||||
customer: {
|
|
||||||
registeredBranch: { OR: permissionCond(req.user) },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
} satisfies Prisma.RequestDataWhereInput;
|
} satisfies Prisma.RequestDataWhereInput;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue