Skip to content

Commit

Permalink
fix: or->and
Browse files Browse the repository at this point in the history
  • Loading branch information
Kingtous committed Oct 23, 2021
1 parent 6c66d77 commit 741959f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controllers/DatabaseController.js
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ class DatabaseController {
}
if (query['$and']) {
return Promise.all(
query['$or'].map(aQuery => {
query['$and'].map(aQuery => {
return this.reduceRelationKeys(className, aQuery, queryOptions);
})
);
Expand Down

0 comments on commit 741959f

Please sign in to comment.