« get me outta code hell

bam (Thing subclasses: several steps, one file) - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/upd8.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2022-02-12 17:38:27 -0400
committer(quasar) nebula <qznebula@protonmail.com>2022-02-12 17:40:01 -0400
commit95bd943d62473e53de11cd6368e540cd48e4231a (patch)
treea6e1f0a21222eaeb01a270d8202a31616903649b /src/upd8.js
parentcfa02cb03a363c46408db7f0ec54bd3a7e4ad018 (diff)
bam (Thing subclasses: several steps, one file)
Diffstat (limited to 'src/upd8.js')
-rwxr-xr-xsrc/upd8.js36
1 files changed, 21 insertions, 15 deletions
diff --git a/src/upd8.js b/src/upd8.js
index 2aa4eb2..de79a0f 100755
--- a/src/upd8.js
+++ b/src/upd8.js
@@ -91,20 +91,26 @@ import find from './util/find.js';
 import * as html from './util/html.js';
 import unbound_link, {getLinkThemeString} from './util/link.js';
 
-import Album, { TrackGroup } from './thing/album.js';
-import Artist from './thing/artist.js';
-import ArtTag from './thing/art-tag.js';
-import CacheableObject from './thing/cacheable-object.js';
-import Flash, { FlashAct } from './thing/flash.js';
-import Group, { GroupCategory } from './thing/group.js';
-import HomepageLayout, {
+import CacheableObject from './data/cacheable-object.js';
+
+import {
+    Album,
+    Artist,
+    ArtTag,
+    Flash,
+    FlashAct,
+    Group,
+    GroupCategory,
+    HomepageLayout,
     HomepageLayoutAlbumsRow,
-} from './thing/homepage-layout.js';
-import NewsEntry from './thing/news-entry.js';
-import StaticPage from './thing/static-page.js';
-import Thing from './thing/thing.js';
-import Track from './thing/track.js';
-import WikiInfo from './thing/wiki-info.js';
+    HomepageLayoutRow,
+    NewsEntry,
+    StaticPage,
+    Thing,
+    Track,
+    TrackGroup,
+    WikiInfo,
+} from './data/things.js';
 
 import {
     fancifyFlashURL,
@@ -2612,7 +2618,7 @@ async function main() {
 
                     call(processAggregate.close);
 
-                    dataStep.save(processResults);
+                    call(dataStep.save, processResults);
 
                     return;
                 }
@@ -2696,7 +2702,7 @@ async function main() {
                     });
                 }
 
-                dataStep.save(processResults);
+                call(dataStep.save, processResults);
             });
     }