File tree 1 file changed +1
-7
lines changed
packages/firestore/src/lite-api 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -33,8 +33,6 @@ export class AggregateQuery {
33
33
readonly type = 'AggregateQuery' ;
34
34
/**
35
35
* The query on which you called `countQuery` in order to get this `AggregateQuery`.
36
- * Query type is set to unknown to avoid error caused by query type converter.
37
- * might change it back to T after testing if the error do exist or not
38
36
*/
39
37
readonly query : Query < unknown > ;
40
38
@@ -93,13 +91,9 @@ export function getAggregateFromServerDirect(
93
91
. map ( ( [ key , value ] ) => userDataWriter . convertValue ( value as Value ) ) ;
94
92
95
93
const count = counts [ 0 ] ;
96
- hardAssert (
97
- count !== undefined ,
98
- 'count_alias property is missing from result.'
99
- ) ;
100
94
hardAssert (
101
95
typeof count === 'number' ,
102
- 'Count aggeragte field is not a number: ' + count
96
+ 'Count aggeragte field value is not a number: ' + count
103
97
) ;
104
98
105
99
return Promise . resolve ( new AggregateQuerySnapshot ( query , count ) ) ;
You can’t perform that action at this time.
0 commit comments