removeManyPeople syntax error

Tell us what’s happening:
I’m getting this error message when I submit my code for testing:

SyntaxError: Unexpected token o in JSON at position 1
    at JSON.parse (<anonymous>)
    at /home/runner/boilerplate-mongomongoose/server.js:346:29
    at /home/runner/boilerplate-mongomongoose/node_modules/mongoose/lib/model.js:4919:18
    at processTicksAndRejections (internal/process/task_queues.js:79:11)

Can someone explain how I fix it? Thanks.

Your project link(s)

solution: https://replit.com/@mattnk/boilerplate-mongomongoose

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36

Challenge: Delete Many Documents with model.remove()

Link to the challenge:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.