« get me outta code hell

data step: content function updates, relation syntax 2 - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/generateAlbumSocialEmbed.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-03-19 16:26:55 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-03-19 16:26:55 -0300
commit41c22a553d43fbcc04b7a17ec6f83583ed7f3443 (patch)
tree88f8c25b84a586c31529ea95f96e51d2f6d78553 /src/content/dependencies/generateAlbumSocialEmbed.js
parent7411fe87dc667b25f265f5388b790c5d4bbc880d (diff)
data step: content function updates, relation syntax 2
* new: generateAlbumTrackListItem
* new: generateContributionLinks
Diffstat (limited to 'src/content/dependencies/generateAlbumSocialEmbed.js')
-rw-r--r--src/content/dependencies/generateAlbumSocialEmbed.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/content/dependencies/generateAlbumSocialEmbed.js b/src/content/dependencies/generateAlbumSocialEmbed.js
index b5c5ef66..87d8eed2 100644
--- a/src/content/dependencies/generateAlbumSocialEmbed.js
+++ b/src/content/dependencies/generateAlbumSocialEmbed.js
@@ -11,13 +11,11 @@ export default {
     'urls',
   ],
 
-  relations(album) {
+  relations(relation, album) {
     const relations = {};
 
-    relations.description = {
-      dependency: 'generateAlbumSocialEmbedDescription',
-      args: [album],
-    };
+    relations.description =
+      relation('generateAlbumSocialEmbedDescription', album);
 
     return relations;
   },