Skip to content

Commit

Permalink
gcpfirestore - Add missing resource header when running query
Browse files Browse the repository at this point in the history
  • Loading branch information
ybourgery committed Dec 12, 2023
1 parent e86400e commit 85aa2eb
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 85aa2eb

Please sign in to comment.