Update: Playlist.update remove console.log()
This commit is contained in:
parent
2433262c0e
commit
4af6891bd5
1 changed files with 0 additions and 2 deletions
|
|
@ -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);
|
return sendError(res, 500, -1, `User do not have the permission to modify id or _id`, token);
|
||||||
} else{
|
} else{
|
||||||
const ids = id.split(',');
|
const ids = id.split(',');
|
||||||
console.log(ids);
|
|
||||||
let update = {};
|
let update = {};
|
||||||
let condition;
|
let condition;
|
||||||
|
|
||||||
|
|
@ -343,7 +342,6 @@ exports.update = (req, res) => {
|
||||||
|
|
||||||
Playlist.updateMany({_id: {$in: ids}, userId: token.id, isActive: true}, update, {new: false})
|
Playlist.updateMany({_id: {$in: ids}, userId: token.id, isActive: true}, update, {new: false})
|
||||||
.then(data => {
|
.then(data => {
|
||||||
console.log(data);
|
|
||||||
if(data) {
|
if(data) {
|
||||||
if(data.modifiedCount > 0){
|
if(data.modifiedCount > 0){
|
||||||
return sendMessage(res, 24, update, token);
|
return sendMessage(res, 24, update, token);
|
||||||
|
|
|
||||||
Reference in a new issue