« get me outta code hell

upd8: expose web route sources outside of identifyWebRoutes step - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-05-01 21:26:00 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-05-31 12:11:47 -0300
commit5bff100c3864c244482c1b690e4cef090076d3ab (patch)
treeb1174181d65a529e30d2ff94b90ce65149317dbb
parentaafb21374b2ef96b5021fd65cb059fb6a1319c82 (diff)
upd8: expose web route sources outside of identifyWebRoutes step
-rwxr-xr-xsrc/upd8.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/upd8.js b/src/upd8.js
index 21cabfae..258abd95 100755
--- a/src/upd8.js
+++ b/src/upd8.js
@@ -2158,7 +2158,8 @@ async function main() {
     }
   }
 
-  let webRoutes = null;
+  let webRouteSources = null;
+  let preparedWebRoutes = null;
 
   if (stepStatusSummary.identifyWebRoutes.status === STATUS_NOT_STARTED) {
     Object.assign(stepStatusSummary.identifyWebRoutes, {
@@ -2169,7 +2170,7 @@ async function main() {
     const fromRoot = urls.from('shared.root');
 
     try {
-      const webRouteSources = await identifyAllWebRoutes({
+      webRouteSources = await identifyAllWebRoutes({
         mediaCachePath,
         mediaPath,
         wikiCachePath,
@@ -2185,7 +2186,7 @@ async function main() {
           {message: `Errors computing effective web route paths`},);
 
       aggregate.close();
-      webRoutes = result;
+      preparedWebRoutes = result;
     } catch (error) {
       if (!paragraph) console.log('');
       niceShowAggregate(error);
@@ -2274,7 +2275,7 @@ async function main() {
       thumbsCache,
       urls,
       urlSpec,
-      webRoutes,
+      webRoutes: preparedWebRoutes,
       wikiData,
 
       closeLanguageWatchers,