Skip to content

Commit 6eebf8b

Browse files
pass data cloud query as body (#56)
* pass data cloud query as body * update upsert --------- Co-authored-by: Gurvinder Singh <gurvindersingh@salesforce.com>
1 parent ce5f469 commit 6eebf8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sdk/data-cloud-api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export class DataCloudApiImpl implements DataCloudApi {
3535
retry: {
3636
limit: 1,
3737
},
38-
json: sql,
38+
body: JSON.stringify({ sql }),
3939
};
4040
const response = await this.request.request(url, opts);
4141
return response as DataCloudQueryResponse;
@@ -72,7 +72,7 @@ export class DataCloudApiImpl implements DataCloudApi {
7272
retry: {
7373
limit: 1,
7474
},
75-
json: data,
75+
body: JSON.stringify(data),
7676
};
7777
const response = await this.request.request(url, opts);
7878
return response as DataCloudUpsertResponse;

0 commit comments

Comments
 (0)