Skip to content

Commit a6c3460

Browse files
committed
Fix use of ResourcePath.
1 parent 608ff83 commit a6c3460

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/firestore/src/remote/datastore.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,9 @@ class DatastoreImpl extends Datastore {
106106
this.appCheckCredentials.getToken()
107107
])
108108
.then(([authToken, appCheckToken]) => {
109-
const path = toResourcePath(databaseId, resourcePath).toArray();
110109
return this.connection.invokeRPC<Req, Resp>(
111110
rpcName,
112-
path,
111+
toResourcePath(databaseId, resourcePath),
113112
request,
114113
authToken,
115114
appCheckToken
@@ -142,10 +141,9 @@ class DatastoreImpl extends Datastore {
142141
this.appCheckCredentials.getToken()
143142
])
144143
.then(([authToken, appCheckToken]) => {
145-
const path = toResourcePath(databaseId, resourcePath).toArray();
146144
return this.connection.invokeStreamingRPC<Req, Resp>(
147145
rpcName,
148-
path,
146+
toResourcePath(databaseId, resourcePath),
149147
request,
150148
authToken,
151149
appCheckToken,

0 commit comments

Comments
 (0)