Skip to content

Commit 1cf9f50

Browse files
committed
fix(firestore): spread args into query to quiet deprecation
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
1 parent a1fe5b8 commit 1cf9f50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/firestore/lib/modular/query.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class QueryConstraint {
2828
}
2929

3030
_apply(query) {
31-
return query[this.type].apply(query, this._args, MODULAR_DEPRECATION_ARG);
31+
return query[this.type].call(query, ...this._args, MODULAR_DEPRECATION_ARG);
3232
}
3333
}
3434

0 commit comments

Comments
 (0)