Merge pull request #2245 from serverless/fix-promise-chain-in-deploy-function-plugin

Fix Promise chain in deployFunction plugin
This commit is contained in:
Eslam λ Hefnawy 2016-10-04 00:04:16 +07:00 committed by GitHub
commit 7cef2e3895

View File

@ -69,16 +69,14 @@ class AwsDeployFunction {
ZipFile: data,
};
this.sdk.request(
return this.sdk.request(
'Lambda',
'updateFunctionCode',
params,
this.options.stage, this.options.region
);
this.serverless.cli.log(`Successfully deployed function "${this.options.function}"`);
return BbPromise.resolve();
).then(() => {
this.serverless.cli.log(`Successfully deployed function "${this.options.function}"`);
});
}
cleanup() {