Skip to content

Commit

Permalink
fix(firestore): correct an issue with returning empty paritions from …
Browse files Browse the repository at this point in the history
…GetPartionedQueries (#4346)
  • Loading branch information
crwilcox authored Jun 30, 2021
1 parent f31fac6 commit b2a6171
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firestore/collgroupref.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ func (cgr CollectionGroupRef) GetPartitionedQueries(ctx context.Context, partiti
return nil, err
}
queries := make([]Query, len(qp))
for _, part := range qp {
queries = append(queries, part.toQuery())
for i, part := range qp {
queries[i] = part.toQuery()
}
return queries, nil
}
Expand Down

0 comments on commit b2a6171

Please sign in to comment.