Skip to content

Commit

Permalink
fix(firestore): spread args into query to quiet deprecation
Browse files Browse the repository at this point in the history
previously the args were sent through from modular packed into an
array, but they needed to be spread in order for the args to be correct
and for the deprecation marker to follow them through and not trigger
deprecation warnings
  • Loading branch information
mikehardy committed Feb 18, 2025
1 parent a1fe5b8 commit 1cf9f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/firestore/lib/modular/query.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class QueryConstraint {
}

_apply(query) {
return query[this.type].apply(query, this._args, MODULAR_DEPRECATION_ARG);
return query[this.type].call(query, ...this._args, MODULAR_DEPRECATION_ARG);
}
}

Expand Down

0 comments on commit 1cf9f50

Please sign in to comment.