Add back the 404 code

This commit is contained in:
Louis Laureys 2019-08-19 01:10:06 +02:00
parent 667dce4a94
commit 4ef5cf6dc0

View file

@ -475,6 +475,7 @@ module.exports = (db, server) => {
}
if (!r.deletedCount) {
res.status(404);
res.json({
error: 'Filter was not found',
code: 'FilterNotFound'