Skip to content

Commit e88f054

Browse files
pvdzjdalton
authored andcommitted
Fix the payload of three POST commands (#296)
1 parent ad16e03 commit e88f054

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ export class SocketSdk {
567567
await createPostRequest(
568568
this.#baseUrl,
569569
`orgs/${encodeURIComponent(orgSlug)}/repos`,
570-
{ json: params },
570+
params,
571571
this.#reqOptions
572572
)
573573
)
@@ -970,7 +970,7 @@ export class SocketSdk {
970970
await createPostRequest(
971971
this.#baseUrl,
972972
'dependencies/search',
973-
{ json: params },
973+
params,
974974
this.#reqOptions
975975
)
976976
)
@@ -990,7 +990,7 @@ export class SocketSdk {
990990
await createPostRequest(
991991
this.#baseUrl,
992992
`orgs/${encodeURIComponent(orgSlug)}/repos/${encodeURIComponent(repoSlug)}`,
993-
{ json: params },
993+
params,
994994
this.#reqOptions
995995
)
996996
)

0 commit comments

Comments
 (0)