BugFix: when fetching locations binary data was included in the result
This commit is contained in:
@@ -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,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user