diff --git a/app/lib/actions/billActions.ts b/app/lib/actions/billActions.ts index c3feb47..89a22fb 100644 --- a/app/lib/actions/billActions.ts +++ b/app/lib/actions/billActions.ts @@ -391,7 +391,7 @@ export const deleteBillById = withUser(async (user:AuthenticatedUser, locationID } ], "bills.name": bill.name - }, { projection: { bills: 0 } }) + }, { projection: { _id: 1 } }) .toArray(); // Delete the bill from all subsequent locations (by name)