@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.
@@ -2451,8 +2451,12 @@ var WebApp = class {
2451
2451
  }
2452
2452
  if (typeof app.routing === "function") {
2453
2453
  const routing = app.routing;
2454
- const readyPromise = typeof app.ready === "function" ? app.ready() : Promise.resolve();
2454
+ const appWithReady = app;
2455
+ let readyPromise = null;
2455
2456
  return async (req, res) => {
2457
+ if (readyPromise === null) {
2458
+ readyPromise = typeof appWithReady.ready === "function" ? appWithReady.ready() : Promise.resolve();
2459
+ }
2456
2460
  await readyPromise;
2457
2461
  routing(req, res);
2458
2462
  };