mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Merge pull request #2245 from serverless/fix-promise-chain-in-deploy-function-plugin
Fix Promise chain in deployFunction plugin
This commit is contained in:
commit
7cef2e3895
@ -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() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user