billActions: projection optimization
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user