ResistanceCalendar / resistance-calendar-api

API for Resistance Calendar events
MIT License
3 stars 8 forks source link

Use Event.findOneAndUpdate #50

Closed aaghevli closed 7 years ago

aaghevli commented 7 years ago

So it turns out that there are a few issues with the update I wrote, which, when I fixed ran into an immutable id issue.

This takes the following link and applies the fix to the code. I am not entirely happy with that, but at least it updates the code as expected.

http://stackoverflow.com/questions/31775150/node-js-mongodb-the-immutable-field-id-was-found-to-have-been-altered