feathersjs-ecosystem / feathers-nedb

A service using NeDB, an embedded datastore for Node.js
MIT License
83 stars 19 forks source link

Multi update error #116

Open arkabase opened 3 years ago

arkabase commented 3 years ago

In /lib/index.js line 163 :

const entry = _.omit(data, '_id');

the _.omit method only works on single object, so when trying to update multiple entries with null id and an array of objects, the omit don't work and the _id is not removed from entries, generating Error: You cannot change a document's _id !