diff --git a/app/lib/actions/billActions.ts b/app/lib/actions/billActions.ts index f92d71a..c5b09fa 100644 --- a/app/lib/actions/billActions.ts +++ b/app/lib/actions/billActions.ts @@ -511,10 +511,9 @@ export const uploadProofOfPayment = async (locationID: string, billID: string, f const dbClient = await getDbClient(); const projection = { + // attachment is not required in this context - this will reduce data transfer "bills.attachment": 0, - // don't include the attachment - save the bandwidth it's not needed here - "bills.proofOfPayment.uploadedAt": 1, - // ommit only the file contents - we need to know if a file was already uploaded + // ommit file content - not needed here - this will reduce data transfer "bills.proofOfPayment.fileContentsBase64": 0, };