Skip to content

Commit 52d6732

Browse files
noahsilasTylerBrock
authored andcommitted
Fix workaround to make join query run
In e182744 this workaround was added so that if we are explicitly querying on this join table it would run instead of bailing out early. (This is necessary because the table we are querying is part of a Parse Relation, not a Parse Class). Unfortunately, the logic was _slightly_ off, preventing the query from actually running. Oops!
1 parent 7b9d9d8 commit 52d6732

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controllers/DatabaseController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1418,7 +1418,7 @@ class DatabaseController {
14181418
);
14191419
}
14201420
} else if (pipeline) {
1421-
if (!classExists || className === '_Join:users:_Role') {
1421+
if (!classExists && className !== '_Join:users:_Role') {
14221422
return [];
14231423
} else {
14241424
return this.adapter.aggregate(

0 commit comments

Comments
 (0)