« 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:
-rw-r--r--src/page/artist-alias.js18
-rw-r--r--src/page/index.js2
2 files changed, 10 insertions, 10 deletions
diff --git a/src/page/artist-alias.js b/src/page/artist-alias.js
index f867d123..9e9fdf5b 100644
--- a/src/page/artist-alias.js
+++ b/src/page/artist-alias.js
@@ -7,15 +7,15 @@ export function targets({wikiData}) {
   return wikiData.artistAliasData;
 }
 
-export function write(aliasArtist) {
+export function pathsForTarget(aliasArtist) {
   const {aliasedArtist} = aliasArtist;
 
-  const redirect = {
-    type: 'redirect',
-    fromPath: ['artist', aliasArtist.directory],
-    toPath: ['artist', aliasedArtist.directory],
-    title: () => aliasedArtist.name,
-  };
-
-  return [redirect];
+  return [
+    {
+      type: 'redirect',
+      fromPath: ['artist', aliasArtist.directory],
+      toPath: ['artist', aliasedArtist.directory],
+      title: () => aliasedArtist.name,
+    },
+  ];
 }
diff --git a/src/page/index.js b/src/page/index.js
index 01c3d2de..311fcd6c 100644
--- a/src/page/index.js
+++ b/src/page/index.js
@@ -9,7 +9,7 @@
 
 export * as album from './album.js';
 export * as artist from './artist.js';
-// export * as artistAlias from './artist-alias.js';
+export * as artistAlias from './artist-alias.js';
 // export * as flash from './flash.js';
 // export * as group from './group.js';
 // export * as homepage from './homepage.js';