Merge branch 'staging' into preprod

This commit is contained in:
Vins 2025-04-10 16:28:42 +02:00
commit a4d016cd0b

View File

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