« get me outta code hell

data: track: withDate - 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 10:54:24 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-06-12 17:26:38 -0300
commit0e85744d5527774b7d6988cc543bb58b64d9e5f6 (patch)
treebb7ded9e2ffb7a3838ad42f862c66ed725eff2f5 /src/data/things
parent3d51b9e53029c3995ad4a90c4dda93bdb696ae29 (diff)
data: track: withDate
Diffstat (limited to 'src/data/things')
-rw-r--r--src/data/things/track.js10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/data/things/track.js b/src/data/things/track.js
index 3ead059a..d9254196 100644
--- a/src/data/things/track.js
+++ b/src/data/things/track.js
@@ -62,6 +62,7 @@ import {
   withAlbum,
   withAlwaysReferenceByDirectory,
   withContainingTrackSection,
+  withDate,
   withHasUniqueCoverArt,
   withOriginalRelease,
   withOtherReleases,
@@ -336,13 +337,8 @@ export class Track extends Thing {
     ],
 
     date: [
-      exposeDependencyOrContinue({dependency: 'dateFirstReleased'}),
-
-      withPropertyFromAlbum({
-        property: input.value('date'),
-      }),
-
-      exposeDependency({dependency: '#album.date'}),
+      withDate(),
+      exposeDependency({dependency: '#date'}),
     ],
 
     hasUniqueCoverArt: [