(refactor) locationActions: add timestamp for utility bills proof of payment upload

This commit is contained in:
Knee Cola
2025-11-23 21:58:04 +01:00
parent 3389bce755
commit 7a01dad5e7
2 changed files with 6 additions and 1 deletions

View File

@@ -658,7 +658,10 @@ export const uploadUtilBillsProofOfPayment = async (locationID: string, formData
await dbClient.collection<BillingLocation>("lokacije")
.updateOne(
{ _id: locationID },
{ $set: { utilBillsProofOfPaymentAttachment: attachment } }
{ $set: {
utilBillsProofOfPaymentAttachment: attachment,
utilBillsProofOfPaymentUploadedAt: new Date()
} }
);
return { success: true };