Removed unused variable from function call
This commit is contained in:
+1
-1
@@ -81,7 +81,7 @@ const updateMsg = (req, res) => {
|
|||||||
time: Date.now(),
|
time: Date.now(),
|
||||||
})
|
})
|
||||||
|
|
||||||
Msg.deleteOne({id:id}, (err, data) => {
|
Msg.deleteOne({id:id}, (err) => {
|
||||||
//if there's an error, return the err message
|
//if there's an error, return the err message
|
||||||
if (err) return res.json(`Something went wrong, please try again. ${err}`);
|
if (err) return res.json(`Something went wrong, please try again. ${err}`);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user