Alexander Swiss Ikeh

Results 3 comments of Alexander Swiss Ikeh

hotfix: On update of profile image, an error is returned from the mongoose function findByIdAndUpdate. A detailed explanation can be found here: https://stackoverflow.com/questions/66370059/findoneandupdate-callback-must-be-a-function-got-object-object-nodejs-mon

Also a loop after updating profile image as !req.file checks if there is no file. But using result.url with return the accurate response by checking if image URL was updates...

> > The same thing is happening to me. I'm blowing my head off to try and understand what's happening here. Anyone has a clue? > > My guess is...