« 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/composite/wiki-properties/referencedArtworkList.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/data/composite/wiki-properties/referencedArtworkList.js')
-rw-r--r--src/data/composite/wiki-properties/referencedArtworkList.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/data/composite/wiki-properties/referencedArtworkList.js b/src/data/composite/wiki-properties/referencedArtworkList.js
index a242af2c..819b2f43 100644
--- a/src/data/composite/wiki-properties/referencedArtworkList.js
+++ b/src/data/composite/wiki-properties/referencedArtworkList.js
@@ -1,5 +1,6 @@
 import {input, templateCompositeFrom} from '#composite';
 import find from '#find';
+import {isDate} from '#validators';
 import {combineWikiDataArrays} from '#wiki-data';
 
 import annotatedReferenceList from './annotatedReferenceList.js';
@@ -9,6 +10,13 @@ export default templateCompositeFrom({
 
   compose: false,
 
+  inputs: {
+    date: input({
+      validate: isDate,
+      acceptsNull: true,
+    }),
+  },
+
   steps: () => [
     {
       dependencies: [
@@ -42,6 +50,7 @@ export default templateCompositeFrom({
       referenceType: input.value(['album', 'track']),
       data: '#data',
       find: '#find',
+      date: input('date'),
     }),
   ],
 });