Skip to content

Commit

Permalink
Replace forEach with for..of to allow promise to complete (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamaz authored and kolanos committed Dec 11, 2019
1 parent 073c01c commit df0b961
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "serverless-newrelic-lambda-layers",
"version": "0.1.7",
"version": "0.1.8",
"description": "Serverless plugin for NewRelic APM AWS Lambda layers.",
"main": "dist/index.js",
"files": [
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ export default class NewRelicLambdaLayerPlugin {
}

const funcs = this.functions;
Object.keys(funcs).forEach(async funcName => {
for (const funcName of Object.keys(funcs)) {
const funcDef = funcs[funcName];
await this.addLayer(funcName, funcDef);
});
}
}

public cleanup() {
Expand Down

0 comments on commit df0b961

Please # to comment.