@514labs/moose-lib 0.6.252-ci-5-g451c6103 → 0.6.252-ci-6-g7387d479

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2555,8 +2555,12 @@ var WebApp = class {
2555
2555
  }
2556
2556
  if (typeof app.routing === "function") {
2557
2557
  const routing = app.routing;
2558
- const readyPromise = typeof app.ready === "function" ? app.ready() : Promise.resolve();
2558
+ const appWithReady = app;
2559
+ let readyPromise = null;
2559
2560
  return async (req, res) => {
2561
+ if (readyPromise === null) {
2562
+ readyPromise = typeof appWithReady.ready === "function" ? appWithReady.ready() : Promise.resolve();
2563
+ }
2560
2564
  await readyPromise;
2561
2565
  routing(req, res);
2562
2566
  };