From 7d4e90e86fe62eb26e0dfe673bb4bd2051fec0f6 Mon Sep 17 00:00:00 2001 From: Christian Wahler Date: Wed, 24 May 2023 21:19:20 +0200 Subject: [PATCH] Update index.js fix: ensure initializeServerless() runs sequentially fixes #126 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d9c2bde..7925487 100644 --- a/index.js +++ b/index.js @@ -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()