Skip to content

Commit

Permalink
Fix running of tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-andersen committed Sep 14, 2023
1 parent cfe3024 commit 76ed46f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dev/src/filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import * as firestore from '@google-cloud/firestore';
* or {@link Filter#and} and can then be passed to {@link Query#where}
* to create a new {@link Query} instance that also contains this `Filter`.
*/
export abstract class Filter extends firestore.Filter {
export abstract class Filter {
/**
* Creates and returns a new [Filter]{@link Filter}, which can be
* applied to [Query.where()]{@link Query#where}, [Filter.or()]{@link Filter#or},
Expand Down
4 changes: 2 additions & 2 deletions dev/src/reference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1561,13 +1561,13 @@ export class Query<
where(filter: firestore.Filter): Query<AppModelType, DbModelType>;

where(
fieldPathOrFilter: string | firestore.FieldPath | firestore.Filter,
fieldPathOrFilter: string | FieldPath | Filter,
opStr?: firestore.WhereFilterOp,
value?: unknown
): Query<AppModelType, DbModelType> {
let filter: firestore.Filter;

if (fieldPathOrFilter instanceof firestore.Filter) {
if (fieldPathOrFilter instanceof Filter) {
filter = fieldPathOrFilter;
} else {
filter = Filter.where(fieldPathOrFilter, opStr!, value);
Expand Down

0 comments on commit 76ed46f

Please sign in to comment.