Skip to content

Commit

Permalink
Fix bug delete
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyendacthienngan committed Dec 31, 2021
1 parent c7e1533 commit e853272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/video-info.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ exports.deleteVideoInfo = async function (req, res) {
try {
await deleteFile(url)
try {
const data = await Video.deleteOne({ id: id });
const data = await Video.deleteOne({ _id: id });
res.status(200).send(data);
} catch(error) {
res.send(error);
Expand Down

0 comments on commit e853272

Please sign in to comment.