How to solve “TypeError: callback.apply is not a function”?
问题 I am doing a university project and I've read every post regarding my problem, but I am yet to find a solution. Maybe you can help me out. The code is the following: viewerObj.update({_id: currentIDViewerVar} , {minutesWatched: 5},{upsert:true} , function (err,result) { if (err) throw err; console.log("Viewer " + userNameVar + " gespeichert"); console.log("minsWatched" +minsWatched); }); I get the following error. I can't see what I am doing wrong. events.js:160 throw er; // Unhandled 'error'