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 1/2] 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, }, } ); From 132cdc7a3f490ddedb8e6b56e8e7c23f770964ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Dere=C5=BEi=C4=87?= Date: Thu, 8 Feb 2024 15:31:59 +0100 Subject: [PATCH 2/2] updated compose file --- docker-compose-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose-deploy.yml b/docker-compose-deploy.yml index 258af0e..d7964bd 100644 --- a/docker-compose-deploy.yml +++ b/docker-compose-deploy.yml @@ -9,7 +9,7 @@ networks: services: web-app: - image: utility-bills-tracker:1.10.0 + image: utility-bills-tracker:1.10.1 networks: - traefik-network - mongo-network