« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things/track.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/data/things/track.js')
-rw-r--r--src/data/things/track.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/data/things/track.js b/src/data/things/track.js
index 5c3161aa..0ac6aabd 100644
--- a/src/data/things/track.js
+++ b/src/data/things/track.js
@@ -50,6 +50,7 @@ import {
   referenceList,
   referencedArtworkList,
   reverseReferenceList,
+  reverseReferencedArtworkList,
   simpleDate,
   simpleString,
   singleReference,
@@ -443,6 +444,14 @@ export class Track extends Thing {
       data: 'flashData',
       list: input.value('featuredTracks'),
     }),
+
+    referencedByArtworks: [
+      exitWithoutUniqueCoverArt({
+        value: input.value([]),
+      }),
+
+      reverseReferencedArtworkList(),
+    ],
   });
 
   static [Thing.yamlDocumentSpec] = {