fix where query for documents
This commit is contained in:
parent
f1fc9deae7
commit
12ce8ddff4
@ -28,12 +28,9 @@ export default class DocumentsController extends ApiController {
|
|||||||
query = JSON.parse(req.query["q"] as string);
|
query = JSON.parse(req.query["q"] as string);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const customerId: string = req.body.user.customerId;
|
||||||
//This was useless and was causing a bug
|
const customerWhereInput: Prisma.DocumentsWhereInput ={ depositor: { uid: customerId } };
|
||||||
|
query.where = customerWhereInput;
|
||||||
// const customerId: string = req.body.user.customerId;
|
|
||||||
// const customerWhereInput: Prisma.DocumentsWhereInput ={ depositor: { uid: customerId } };
|
|
||||||
// query.where = customerWhereInput;
|
|
||||||
|
|
||||||
|
|
||||||
//call service to get prisma entity
|
//call service to get prisma entity
|
||||||
|
Loading…
x
Reference in New Issue
Block a user