codeswarm / sails-couchdb-orm

CouchDB Adapter for the Sails.js ORM Framework, Waterline
36 stars 20 forks source link

.findOne() requires a criteria error when updating models using couchdb #13

Open tmjam opened 9 years ago

tmjam commented 9 years ago

I am using couchdb adapter with sails js. Updating model's with primary key set as string gives the following error.

.findOne() requires a criteria