diff --git a/src/app/api/notary/DocumentsReminderController.ts b/src/app/api/notary/DocumentsReminderController.ts index 28618e7c..3c1d94d8 100644 --- a/src/app/api/notary/DocumentsReminderController.ts +++ b/src/app/api/notary/DocumentsReminderController.ts @@ -34,7 +34,7 @@ export default class DocumentsReminderController extends ApiController { this.httpBadRequest(response, "You can't filter by uid"); return; } - } + } //call service to get prisma entity const documentReminderEntities = await this.documentsReminderService.get(query); @@ -56,6 +56,10 @@ export default class DocumentsReminderController extends ApiController { //get query let query: Prisma.DocumentsReminderCountArgs = {}; + if (req.query["q"]) { + query = JSON.parse(req.query["q"] as string); + } + //call service to get prisma entity const count = await this.documentsReminderService.count(query); const responseData = {