These are chat archives for Automattic/mongoose

7th
Aug 2018
Kev
@lineus
Aug 07 2018 09:20
@Lukasz199312 it looks like you are passing a conditional object as the first arg to Document.update(). Since you're calling it on the doc, as opposed to the Model, you can't do that. try:
doc.update({"$set": {
  "series.$.currentSeasonID": seasonID,  
  "series.$.currentEpisodeID": episodeID, 
  "series.$.seriesID":seriesID
}})