Skip to content

Commit 975d669

Browse files
committed
Simplifying
1 parent 9b7dcf1 commit 975d669

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

packages/sdk/src/server/index.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -830,10 +830,7 @@ export class ServerClient {
830830
* ```
831831
*/
832832
public async invokeWorkflowForExternalUser(url: string, externalUserId: string, opts: RequestOptions = {}): Promise<unknown> {
833-
const {
834-
body,
835-
headers = {},
836-
} = opts;
833+
const { headers = {} } = opts;
837834

838835
if (!externalUserId) {
839836
throw new Error("External user ID is required");
@@ -843,15 +840,13 @@ export class ServerClient {
843840
throw new Error("Project public key is required to map the external user ID to the correct project");
844841
}
845842

846-
return this.makeRequest("", {
843+
return this.invokeWorkflow(url, {
847844
...opts,
848-
baseURL: url,
849845
headers: {
850846
...headers,
851847
"X-PD-External-User-ID": externalUserId,
852848
"X-PD-Project-Public-Key": this.publicKey,
853849
},
854-
body,
855850
});
856851
}
857852
}

0 commit comments

Comments
 (0)