Debug: User.history watchedDates
This commit is contained in:
parent
027a34ac70
commit
df3deb057c
1 changed files with 1 additions and 1 deletions
|
|
@ -397,7 +397,7 @@ exports.update = (req, res) => {
|
||||||
update.$push = condition;
|
update.$push = condition;
|
||||||
|
|
||||||
const watchedDates = req.body.watchedDates ? req.body.watchedDates : undefined;
|
const watchedDates = req.body.watchedDates ? req.body.watchedDates : undefined;
|
||||||
update.watchedDates = {watchedDates: watchedDates};
|
update.watchedDates = watchedDates;
|
||||||
|
|
||||||
const isActive = req.body.isActive;
|
const isActive = req.body.isActive;
|
||||||
if(typeof isActive !== 'undefined'){
|
if(typeof isActive !== 'undefined'){
|
||||||
|
|
|
||||||
Reference in a new issue