Skip to content

Commit

Permalink
fix(firestore, windows): fix compilation issue on Windows (#12375)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyokone committed Feb 23, 2024
1 parent a3bc6b8 commit f24d0a7
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -1442,8 +1442,10 @@ void CloudFirestorePlugin::AggregateQuery(
case AggregateType::count: {
double doubleValue =
static_cast<double>(aggregateQuerySnapshot->count());
aggregateResponses.push_back(CustomEncodableValue(
AggregateQueryResponse(AggregateType::count, doubleValue)));
AggregateQueryResponse aggregateResponse(AggregateType::count,
nullptr, &doubleValue);
aggregateResponses.push_back(
CustomEncodableValue(aggregateResponse));
break;
}
case AggregateType::sum: {
Expand Down

0 comments on commit f24d0a7

Please sign in to comment.