From cb633ccc4d8dba26efb1c29d404f85a7b76151c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Dere=C5=BEi=C4=87?= Date: Thu, 8 Feb 2024 15:31:35 +0100 Subject: [PATCH] BugFix: when fetching locations binary data was included in the result --- app/lib/actions/locationActions.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/lib/actions/locationActions.ts b/app/lib/actions/locationActions.ts index f523eae..d90d792 100644 --- a/app/lib/actions/locationActions.ts +++ b/app/lib/actions/locationActions.ts @@ -113,7 +113,7 @@ export const fetchAllLocations = withUser(async (user:AuthenticatedUser, year:nu { projection: { // don't include the attachment binary data in the response - "bill.attachment.fileContentsBase64": 0, + "bills.attachment.fileContentsBase64": 0 }, } ) @@ -126,7 +126,7 @@ export const fetchAllLocations = withUser(async (user:AuthenticatedUser, year:nu // await asyncTimeout(1000); - return(locations); + return(locations) }) export const fetchLocationById = withUser(async (user:AuthenticatedUser, locationID:string) => { @@ -144,7 +144,7 @@ export const fetchLocationById = withUser(async (user:AuthenticatedUser, locatio { projection: { // don't include the attachment binary data in the response - "bill.attachment.fileContentsBase64": 0, + "bills.attachment.fileContentsBase64": 0, }, } );