Skip to content

Commit

Permalink
fix(collection/node): add workarounds for removal of "remove" and "up…
Browse files Browse the repository at this point in the history
…date"

removal is handled by another PR
  • Loading branch information
hasezoey committed Feb 18, 2023
1 parent 324d634 commit 52198d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/collection/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class NodeCollection extends Collection {
* update(match, update, options)
*/
async update(match, update, options) {
// DEBUG: removal of "update" is handled by https://github.com/mongoosejs/mquery/pull/136
return this.collection.update(match, update, options);
}

Expand Down Expand Up @@ -90,7 +91,8 @@ class NodeCollection extends Collection {
* remove(match, options)
*/
async remove(match, options) {
return this.collection.remove(match, options);
// DEBUG: removal of "remove" is handled by https://github.com/mongoosejs/mquery/pull/136
return this.collection.deleteMany(match, options);
}

/**
Expand Down

0 comments on commit 52198d8

Please sign in to comment.