diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2025-03-31 17:40:35 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2025-04-10 16:02:36 -0300 |
commit | 015989924eadd401ae5932d634109a2f6b801666 (patch) | |
tree | ba60ed97c763e0e9ae43172f74be33d8da083380 /src/data/composite | |
parent | f8a5593abfddc433890e0c8916d07698bb8c7279 (diff) |
data: soupyReverse.artworkContributionsBy
Diffstat (limited to 'src/data/composite')
-rw-r--r-- | src/data/composite/wiki-properties/soupyReverse.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/data/composite/wiki-properties/soupyReverse.js b/src/data/composite/wiki-properties/soupyReverse.js index 269ccd6f..a3171738 100644 --- a/src/data/composite/wiki-properties/soupyReverse.js +++ b/src/data/composite/wiki-properties/soupyReverse.js @@ -19,4 +19,16 @@ soupyReverse.contributionsBy = referenced: contrib => [contrib.artist], }); +soupyReverse.artworkContributionsBy = + (bindTo, artworkProperty) => ({ + bindTo, + + referencing: thing => + (thing[artworkProperty] + ? thing[artworkProperty].artistContribs + : []), + + referenced: contrib => [contrib.artist], + }); + export default soupyReverse; |