« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/upd8.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/upd8.js b/src/upd8.js
index f60c57a9..63d36b0a 100755
--- a/src/upd8.js
+++ b/src/upd8.js
@@ -2186,8 +2186,8 @@ async function main() {
                 const to = writePage.to({baseDirectory, pageSubKey: fromPath[0], paths: fromPaths});
 
                 const target = to('localized.' + toPath[0], ...toPath.slice(1));
-                const content = generateRedirectPage(title, target, {language});
-                return writePage.write(content, {paths: fromPaths});
+                const html = generateRedirectPage(title, target, {language});
+                return writePage.write({html, paths: fromPaths});
             })
         ], queueSize));
     };