-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'IslandRhythms/gh-13369' of github.com:Automattic/mongoo…
…se into IslandRhythms/gh-13369
- Loading branch information
Showing
2 changed files
with
15 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d9fd789
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello,
I see that Model.prototype.deleteOne is an async function, and the original issue #13223 is wanting deleteOne to return a query.
Also, if self.constructor.deleteOne is going to be called, Model.deleteOne calls Query which applies the middleware.
Please correct me if I'm wrong because there might be something I'm missing or misunderstanding. I would like to help if possible.
Cheers!
d9fd789
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a very good point, thanks for noticing this.