« get me outta code hell

data: fix Album.referencedArtworks being unresolvable - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-11-17 18:14:27 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-11-17 18:14:27 -0400
commit6acbc628cb111c53d0b312ab90cd4807ad4bd8d1 (patch)
tree4f20ac30653c0327f02bbb279f089903714fd188 /src/data
parent257b7616e3a0997f2a5c2766c7923719cf2ca0b5 (diff)
data: fix Album.referencedArtworks being unresolvable
Diffstat (limited to 'src/data')
-rw-r--r--src/data/things/album.js8
-rw-r--r--src/data/yaml.js2
2 files changed, 10 insertions, 0 deletions
diff --git a/src/data/things/album.js b/src/data/things/album.js
index b6bd1313..af7f0239 100644
--- a/src/data/things/album.js
+++ b/src/data/things/album.js
@@ -244,6 +244,10 @@ export class Album extends Thing {
 
     // Update only
 
+    albumData: wikiData({
+      class: input.value(Album),
+    }),
+
     artistData: wikiData({
       class: input.value(Artist),
     }),
@@ -256,6 +260,10 @@ export class Album extends Thing {
       class: input.value(Group),
     }),
 
+    trackData: wikiData({
+      class: input.value(Track),
+    }),
+
     wikiInfo: thing({
       class: input.value(WikiInfo),
     }),
diff --git a/src/data/yaml.js b/src/data/yaml.js
index 37d6daf0..f7c36b89 100644
--- a/src/data/yaml.js
+++ b/src/data/yaml.js
@@ -1209,9 +1209,11 @@ export async function loadAndProcessDataDocuments(dataSteps, {dataPath}) {
 export function linkWikiDataArrays(wikiData) {
   const linkWikiDataSpec = new Map([
     [wikiData.albumData, [
+      'albumData',
       'artTagData',
       'artistData',
       'groupData',
+      'trackData',
       'wikiInfo',
     ]],