Skip to content

Commit

Permalink
docstore/gcpfirestore: Add missing resource header when running query
Browse files Browse the repository at this point in the history
  • Loading branch information
ybourgery authored Dec 12, 2023
1 parent e86400e commit c770de8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docstore/gcpfirestore/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (c *collection) newDocIterator(ctx context.Context, q *driver.Query) (*docI
}
}
ctx, cancel := context.WithCancel(ctx)
sc, err := c.client.RunQuery(ctx, req)
sc, err := c.client.RunQuery(withResourceHeader(ctx, c.dbPath), req)
if err != nil {
cancel()
return nil, err
Expand All @@ -65,7 +65,7 @@ func (c *collection) newDocIterator(ctx context.Context, q *driver.Query) (*docI
}, nil
}

////////////////////////////////////////////////////////////////
// //////////////////////////////////////////////////////////////
// The code below is adapted from cloud.google.com/go/firestore.

type docIterator struct {
Expand Down

0 comments on commit c770de8

Please sign in to comment.