Skip to content

Commit 99c7ef8

Browse files
committed
Fixed type-o in error message.
1 parent ed0e192 commit 99c7ef8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/firestore/src/lite-api/query.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,8 +1240,8 @@ function validateQueryConstraintArray(
12401240
'InvalidQuery. When using composite filters, you cannot use ' +
12411241
'more than one filter at the top level. Consider nesting the multiple ' +
12421242
'filters within an `and(...)` statement. For example: ' +
1243-
'change `where(query, where(...), or(...))` to ' +
1244-
'`where(query, and(where(...), or(...)))`.'
1243+
'change `query(query, where(...), or(...))` to ' +
1244+
'`query(query, and(where(...), or(...)))`.'
12451245
);
12461246
}
12471247
}

packages/firestore/test/integration/api/validation.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1408,8 +1408,8 @@ apiDescribe('Validation:', (persistence: boolean) => {
14081408
'InvalidQuery. When using composite filters, you cannot use ' +
14091409
'more than one filter at the top level. Consider nesting the multiple ' +
14101410
'filters within an `and(...)` statement. For example: ' +
1411-
'change `where(query, where(...), or(...))` to ' +
1412-
'`where(query, and(where(...), or(...)))`.'
1411+
'change `query(query, where(...), or(...))` to ' +
1412+
'`query(query, and(where(...), or(...)))`.'
14131413
);
14141414

14151415
// Once top level composite filter and one top level field filter
@@ -1420,8 +1420,8 @@ apiDescribe('Validation:', (persistence: boolean) => {
14201420
'InvalidQuery. When using composite filters, you cannot use ' +
14211421
'more than one filter at the top level. Consider nesting the multiple ' +
14221422
'filters within an `and(...)` statement. For example: ' +
1423-
'change `where(query, where(...), or(...))` to ' +
1424-
'`where(query, and(where(...), or(...)))`.'
1423+
'change `query(query, where(...), or(...))` to ' +
1424+
'`query(query, and(where(...), or(...)))`.'
14251425
);
14261426
});
14271427

0 commit comments

Comments
 (0)