BugFix: when fetching locations binary data was included in the result

This commit is contained in:
2024-02-08 15:31:35 +01:00
parent a30e3b74bb
commit cb633ccc4d

View File

@@ -113,7 +113,7 @@ export const fetchAllLocations = withUser(async (user:AuthenticatedUser, year:nu
{ {
projection: { projection: {
// don't include the attachment binary data in the response // 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); // await asyncTimeout(1000);
return(locations); return(locations)
}) })
export const fetchLocationById = withUser(async (user:AuthenticatedUser, locationID:string) => { export const fetchLocationById = withUser(async (user:AuthenticatedUser, locationID:string) => {
@@ -144,7 +144,7 @@ export const fetchLocationById = withUser(async (user:AuthenticatedUser, locatio
{ {
projection: { projection: {
// don't include the attachment binary data in the response // don't include the attachment binary data in the response
"bill.attachment.fileContentsBase64": 0, "bills.attachment.fileContentsBase64": 0,
}, },
} }
); );