blob: f73a2ad3600c98891e00680a96190d9f6bdbbf6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
export default {
contentDependencies: [
'linkAlbumReferencedArtworks',
'linkTrackReferencedArtworks',
],
relations: (relation, artwork) => ({
link:
(artwork.thing.isAlbum
? relation('linkAlbumReferencedArtworks', artwork.thing)
: artwork.thing.isTrack
? relation('linkTrackReferencedArtworks', artwork.thing)
: null),
}),
generate: (relations) => relations.link,
};
|