Skip to content

Commit

Permalink
Reorder updateCollection arguments in client call
Browse files Browse the repository at this point in the history
Fix failed build
  • Loading branch information
jkaho committed Nov 4, 2021
1 parent 7118fdd commit 77f5f46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/collections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export class CollectionsClient extends Client {
const um = Object.keys(updateMask).map((field) => field);

try {
const res = await this.client.updateCollection(id, c, um.join(","));
const res = await this.client.updateCollection(id, um.join(","), c);
// OpenAPI readonly fields become optional TS fields, but we know the API
// will return it, so use ! to fix the types. This is done so upstream
// users don't have to do this.
Expand Down

0 comments on commit 77f5f46

Please sign in to comment.