Skip to content

Commit

Permalink
Merge pull request #14 from thanpolas/update-dependencies-to-latest
Browse files Browse the repository at this point in the history
Update dependencies to latest
  • Loading branch information
thanpolas committed Mar 3, 2020
2 parents 7ac81b6 + 193fa25 commit 756f252
Show file tree
Hide file tree
Showing 10 changed files with 4,066 additions and 59 deletions.
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
language: node_js
node_js:
- 0.10
- 12
env:
- TRAVIS=true
services:
- mongodb
before_script:
- psql -c 'create database entity_test;' -U postgres

# Don't do postgres
# before_script:
# - psql -c 'create database entity_test;' -U postgres

# exclude work in progress
branches:
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,9 @@ entity.read()
## Release History
- **v0.6.0**, *03 Mar 2020*
- Fixed mongoose adaptor delete method.
- Updated all dependencies to latest.
- **v0.5.6**, *18 Oct 2016*
- Will now normalize arrays of objects too.
- **v0.5.5**, *16 Jan 2016*
Expand Down
2 changes: 1 addition & 1 deletion adaptors/mongoose.adp.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ MongooseAdapter.prototype._delete = function(id) {

var query = this._getQuery(id);

return Promise.resolve(this.Model.remove(query));
return Promise.resolve(this.Model.deleteMany(query));
};

/**
Expand Down
Loading

0 comments on commit 756f252

Please sign in to comment.