« get me outta code hell

data: redate inherited contribution lists - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-03-07 12:20:50 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-06-18 22:56:03 -0300
commitd90773b9be9c2737f8962bcf2aead04b9fab9368 (patch)
tree1b3f260d0a785ee7d9d3db09fe8df11da7bcc051 /src/data/things
parent7aea624c3e101c30e02e5ae08679ec243764632f (diff)
data: redate inherited contribution lists
Diffstat (limited to 'src/data/things')
-rw-r--r--src/data/things/track.js18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/data/things/track.js b/src/data/things/track.js
index 5410889f..2f916b1d 100644
--- a/src/data/things/track.js
+++ b/src/data/things/track.js
@@ -18,8 +18,6 @@ import {
 } from '#yaml';
 
 import {withPropertyFromObject} from '#composite/data';
-import {withRecontextualizedContributionList, withResolvedContribs}
-  from '#composite/wiki-data';
 
 import {
   exitWithoutDependency,
@@ -31,6 +29,12 @@ import {
 } from '#composite/control-flow';
 
 import {
+  withRecontextualizedContributionList,
+  withRedatedContributionList,
+  withResolvedContribs,
+} from '#composite/wiki-data';
+
+import {
   additionalFiles,
   additionalNameList,
   commentary,
@@ -217,6 +221,11 @@ export class Track extends Thing {
         list: '#album.artistContribs',
       }),
 
+      withRedatedContributionList({
+        list: '#album.artistContribs',
+        date: '#date',
+      }),
+
       exposeDependency({dependency: '#album.artistContribs'}),
     ],
 
@@ -261,6 +270,11 @@ export class Track extends Thing {
         list: '#album.trackCoverArtistContribs',
       }),
 
+      withRedatedContributionList({
+        list: '#album.trackCoverArtistContribs',
+        date: '#trackArtDate',
+      }),
+
       exposeDependency({dependency: '#album.trackCoverArtistContribs'}),
     ],