We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f09151 commit def192fCopy full SHA for def192f
plugins/push/api/parts/endpoints.js
@@ -1207,7 +1207,7 @@ function cachedData(note) {
1207
return common.returnMessage(params, 403, 'Only app / global admins are allowed to delete');
1208
}
1209
1210
- await note.update(common.db, {$bit: {'result.status': {or: N.Status.Deleted}}});
+ await note.update(common.db, {$bit: {'result.status': {or: N.Status.Deleted}}}).catch(log.w.bind(log, 'Error during message deletion'));
1211
api.cache.remove(_id);
1212
note.result.status |= N.Status.Deleted;
1213
0 commit comments