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 */