Revert "Merge pull request #8026 from nightscout/less_frequent_db_updates"

This reverts commit 2757fe585d, reversing
changes made to 4a461e5890.
This commit is contained in:
Ben West
2023-10-19 13:03:38 -07:00
parent b2a59ee9dc
commit 2e65b1dd9b
25 changed files with 476 additions and 193 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ function configure (app, wares, ctx) {
});
// delete record
api.delete('/food/:_id', ctx.authorization.isPermitted('api:food:delete'), function(req, res) {
ctx.food.deleteOne(req.params._id, function ( ) {
ctx.food.remove(req.params._id, function ( ) {
res.json({ });
});
});