orchid-orm 1.35.17 → 1.35.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -622,10 +622,7 @@ const makeHasOneMethod = (table, relation, relationName, query) => {
622
622
  returns: "one",
623
623
  method: (params) => {
624
624
  const throughQuery = table[through](params);
625
- return query.whereExists(
626
- throughQuery,
627
- whereExistsCallback
628
- );
625
+ return query.whereExists(throughQuery, whereExistsCallback);
629
626
  },
630
627
  joinQuery: joinQueryChainingHOF(
631
628
  reverseJoin2,
@@ -884,10 +881,7 @@ const makeHasManyMethod = (table, relation, relationName, query) => {
884
881
  returns: "many",
885
882
  method: (params) => {
886
883
  const throughQuery = table[through](params);
887
- return query.whereExists(
888
- throughQuery,
889
- whereExistsCallback
890
- );
884
+ return query.whereExists(throughQuery, whereExistsCallback);
891
885
  },
892
886
  joinQuery: joinQueryChainingHOF(
893
887
  reverseJoin2,