From 86b6c777c4471e3dc696830009e6898a503fba8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Dere=C5=BEi=C4=8D?= Date: Sat, 14 Dec 2024 09:56:50 +0100 Subject: [PATCH] =?UTF-8?q?opzimizacija:=20stranica=20za=20prikaz=20godine?= =?UTF-8?q?=20je=20dohva=C4=87ala=20i=20QR=20kodove=20=3D=20slow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/lib/actions/locationActions.ts | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/app/lib/actions/locationActions.ts b/app/lib/actions/locationActions.ts index fcf9439..86b5799 100644 --- a/app/lib/actions/locationActions.ts +++ b/app/lib/actions/locationActions.ts @@ -117,8 +117,22 @@ export const fetchAllLocations = withUser(async (user:AuthenticatedUser, year:nu }, { projection: { - // don't include the attachment binary data in the response - "bills.attachment.fileContentsBase64": 0 + "_id": 1, + // "userId": 0, + // "userEmail": 0, + "name": 1, + // "notes": 0, + // "yearMonth": 1, + "yearMonth.year": 1, + "yearMonth.month": 1, + // "bills": 1, + "bills._id": 1, + "bills.name": 1, + "bills.paid": 1, + "bills.payedAmount": 1, + // "bills.attachment": 0, + // "bills.notes": 0, + // "bills.barcodeImage": 1, }, } )