Update: Playlist.update remove console.log()

This commit is contained in:
Yûki VACHOT 2021-12-14 17:04:59 +01:00
parent 2433262c0e
commit 4af6891bd5

View file

@ -307,7 +307,6 @@ exports.update = (req, res) => {
return sendError(res, 500, -1, `User do not have the permission to modify id or _id`, token);
} else{
const ids = id.split(',');
console.log(ids);
let update = {};
let condition;
@ -343,7 +342,6 @@ exports.update = (req, res) => {
Playlist.updateMany({_id: {$in: ids}, userId: token.id, isActive: true}, update, {new: false})
.then(data => {
console.log(data);
if(data) {
if(data.modifiedCount > 0){
return sendMessage(res, 24, update, token);