From c770de821742ef8c7dddf36b63625eae35899124 Mon Sep 17 00:00:00 2001 From: ybourgery Date: Tue, 12 Dec 2023 18:39:48 +0100 Subject: [PATCH] docstore/gcpfirestore: Add missing resource header when running query --- docstore/gcpfirestore/query.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docstore/gcpfirestore/query.go b/docstore/gcpfirestore/query.go index f4c4eaad00..f7b3937c85 100644 --- a/docstore/gcpfirestore/query.go +++ b/docstore/gcpfirestore/query.go @@ -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 @@ -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 {