Compare commits

...

1 Commits

Author SHA1 Message Date
wss-git 6c79c2797e fix: get client error 2021-10-19 15:49:50 +08:00
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 });