feathersjs-ecosystem / feathers-nedb

A service using NeDB, an embedded datastore for Node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multi update error

arkabase opened this issue · comments

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 !