From f6543980fcc3903022c071bf58bb38b03be45dce Mon Sep 17 00:00:00 2001 From: Vins Date: Thu, 10 Apr 2025 16:28:22 +0200 Subject: [PATCH] Fixed historique de relance --- src/app/api/notary/DocumentsReminderController.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 = {