« get me outta code hell

linkAlbumReferencedArtworks.js « dependencies « content « src - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/linkAlbumReferencedArtworks.js
blob: c734f403915e85b76ab2571133f270223dd9135d (plain)
1
2
3
4
5
6
7
8
9
10
export default {
  relations: (relation, album) => ({
    link:
      (album.style === 'in-game vgm'
        ? relation('linkThing', 'localized.vgmAlbumReferencedArtworks', album)
        : relation('linkThing', 'localized.albumReferencedArtworks', album)),
  }),

  generate: (relations) => relations.link,
};