« get me outta code hell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
export default { relations: (relation, row) => ({ coverCarousel: relation('generateCoverCarousel'), links: row.albums .map(album => relation('linkAlbum', album)), images: row.albums .map(album => relation('image', album.coverArtworks[0])), }), generate: (relations) => relations.coverCarousel.slots({ links: relations.links, images: relations.images, }), };