Skip to content

Commit 725237d

Browse files
committed

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

polycode/datastore.go

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,14 @@ func (u UnsafeDataStore) Collection(name string) UnsafeCollection {
5050
}
5151
}
5252

53-
func (u UnsafeDataStore) GlobalCollection(name string) Collection {
54-
return Collection{
55-
client: u.client,
56-
sessionId: u.sessionId,
57-
name: name,
58-
isGlobal: true,
53+
func (u UnsafeDataStore) GlobalCollection(name string) UnsafeCollection {
54+
return UnsafeCollection{
55+
client: u.client,
56+
sessionId: u.sessionId,
57+
tenantId: u.tenantId,
58+
partitionKey: u.partitionKey,
59+
name: name,
60+
isGlobal: true,
5961
}
6062
}
6163

0 commit comments

Comments
 (0)