From 6c79c2797efa05e8760e9075be964595930fcfe4 Mon Sep 17 00:00:00 2001 From: wss-git Date: Tue, 19 Oct 2021 15:49:50 +0800 Subject: [PATCH] fix: get client error --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 99260b6..b043ab7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -30,7 +30,7 @@ export default class FcRemoteInvoke { let fcClient; if (!props.domainName) { const fcCommon = await core.loadComponent('devsapp/fc-common'); - fcClient = await fcCommon.makeFcClient(inputs); + fcClient = await fcCommon.makeFcClient({ ...inputs, props: { region: props.region }}); } const remoteInvoke = new RemoteInvoke(fcClient, credentials.AccountID); await remoteInvoke.invoke(props, eventPayload, { invocationType });