From 87d6928a972d00bb502224568733cd9d4af64d7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Dere=C5=BEi=C4=87?= Date: Mon, 13 Jan 2025 16:32:38 +0100 Subject: [PATCH 1/2] BugFix: fixing types --- app/lib/actions/locationActions.ts | 2 +- app/lib/db-types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/actions/locationActions.ts b/app/lib/actions/locationActions.ts index de608e8..d1ef4c4 100644 --- a/app/lib/actions/locationActions.ts +++ b/app/lib/actions/locationActions.ts @@ -110,7 +110,7 @@ export const fetchAllLocations = withUser(async (user:AuthenticatedUser, year:nu // fetch all locations for the given year const locations = await dbClient.collection("lokacije") - .aggregate([ + .aggregate([ { $match: { userId, diff --git a/app/lib/db-types.ts b/app/lib/db-types.ts index 358dc4f..d9d6cc8 100644 --- a/app/lib/db-types.ts +++ b/app/lib/db-types.ts @@ -46,7 +46,7 @@ export interface Bill { * true if there an attachment * @description this field enables us to send this info to the client without sending large attachment - it's an optimization */ - hasAttachment: boolean; + hasAttachment?: boolean; /** (optional) notes */ notes?: string|null; /** (optional) image data containing PDF471 bar code */ From 0fd4ba9f5b85b12e757029af582dc1618c9df60f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Dere=C5=BEi=C4=87?= Date: Mon, 13 Jan 2025 16:32:48 +0100 Subject: [PATCH 2/2] updating version --- 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 c16884e..b118bfc 100644 --- a/docker-compose-deploy.yml +++ b/docker-compose-deploy.yml @@ -13,7 +13,7 @@ networks: services: web-app: - image: utility-bills-tracker:1.33.1 + image: utility-bills-tracker:1.33.2 networks: - traefik-network - mongo-network