Skip to content

Commit

Permalink
Update dependencies to enable Greenkeeper 🌴 (#61)
Browse files Browse the repository at this point in the history
* chore(package): update dependencies

https://greenkeeper.io/

* docs(readme): add Greenkeeper badge 

https://greenkeeper.io/

* Reject with proper error
  • Loading branch information
greenkeeper[bot] authored and daffl committed Apr 13, 2017
1 parent a0745df commit 1889730
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# feathers-nedb

[![Greenkeeper badge](https://badges.greenkeeper.io/feathersjs/feathers-nedb.svg)](https://greenkeeper.io/)

[![Build Status](https://travis-ci.org/feathersjs/feathers-nedb.png?branch=master)](https://travis-ci.org/feathersjs/feathers-nedb)
[![Code Climate](https://codeclimate.com/github/feathersjs/feathers-nedb/badges/gpa.svg)](https://codeclimate.com/github/feathersjs/feathers-nedb)
[![Test Coverage](https://codeclimate.com/github/feathersjs/feathers-nedb/badges/coverage.svg)](https://codeclimate.com/github/feathersjs/feathers-nedb/coverage)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,6 @@
"mocha": "^3.0.1",
"nedb": "^1.5.1",
"rimraf": "^2.5.4",
"semistandard": "^9.1.0"
"semistandard": "^10.0.0"
}
}
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class Service {

update (id, data, params) {
if (Array.isArray(data) || id === null) {
return Promise.reject('Not replacing multiple records. Did you mean `patch`?');
return Promise.reject(new errors.BadRequest('Not replacing multiple records. Did you mean `patch`?'));
}

const { query, options } = multiOptions(id, this.id, params);
Expand Down

0 comments on commit 1889730

Please sign in to comment.