Mongo Update is returning internal server error

0
router.get('/addInv', function(req, res, next){
  var usrInv = req.query.invusr;
  EventData.update({_id:"5a6e22140c87a94340ac33ca"}, 
  {$set: 
    {
      invit: usrInv 
    }
  })
});

When I try to insert the array contained within the 'usrInv' variable, the server returns an error! Is there something wrong with the code?

    
asked by anonymous 28.01.2018 / 20:37

0 answers