« get me outta code hell

linkArtwork.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/linkArtwork.js
blob: fce8922970ffecc0ad69c352280e3ce2ca848816 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
export default {
  relations: (relation, artwork) => ({
    link:
      (artwork.thing.isAlbum
        ? relation('linkAlbum', artwork.thing)
     : artwork.thing.isTrack
        ? relation('linkTrack', artwork.thing)
        : null),
  }),

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