opzimizacija: stranica za prikaz godine je dohvaćala i QR kodove = slow

This commit is contained in:
2024-12-14 09:56:50 +01:00
parent 4a7f899103
commit 86b6c777c4

View File

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