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, }, } )