fix: get client error

This commit is contained in:
wss-git 2021-10-19 15:49:50 +08:00
parent 3f41b8c50a
commit 6c79c2797e
1 changed files with 1 additions and 1 deletions

View File

@ -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 });