« get me outta code hell

linkAlbumReferencingArtworks.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/linkAlbumReferencingArtworks.js
blob: 37fdadda759d4676ab2d7228f2e10d6afc880f35 (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.vgmAlbumReferencingArtworks', album)
        : relation('linkThing', 'localized.albumReferencingArtworks', album)),
  }),

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