Remove customer finished
This commit is contained in:
parent
0e9aa692a6
commit
752fe3b96c
@ -34,8 +34,8 @@ export default class CustomersController extends ApiController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const officeId: string = req.body.user.office_Id;
|
const officeId: string = req.body.user.office_Id;
|
||||||
if (query.where?.office_folders) delete query.where.office_folders;
|
if (query.where?.office) delete query.where.office;
|
||||||
const customerWhereInput: Prisma.CustomersWhereInput = { ...query.where, office_folders: { some: { office_uid: officeId } } };
|
const customerWhereInput: Prisma.CustomersWhereInput = { ...query.where, office: { uid: officeId } };
|
||||||
query.where = customerWhereInput;
|
query.where = customerWhereInput;
|
||||||
|
|
||||||
//call service to get prisma entity
|
//call service to get prisma entity
|
||||||
|
Loading…
x
Reference in New Issue
Block a user