Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
fix: ensure initializeServerless() runs sequentially

fixes activescott#126
  • Loading branch information
wahler authored May 24, 2023
1 parent 09357f2 commit 7d4e90e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class ServerlessInvoker {
const sls = new Serverless(config)
// NOTE: I've seen sls.init() run very slowly; nearly 500ms!
return sls.init().then(() => {
sls.service.load().then(() => {
return sls.service.load().then(() => {
sls.service.setFunctionNames({})
sls.service.mergeArrays()
sls.service.validate()
Expand Down

0 comments on commit 7d4e90e

Please # to comment.