diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-09-06 15:31:41 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-09-06 15:31:41 -0300 |
commit | 007c70642a60ed83bd840f550aa06563d4ba6a99 (patch) | |
tree | bda1c20f580025acce470b65a6218137e22db373 /src/data | |
parent | 2d7c536ee91a8f5bf8f16db1fc2d0a4d8bb4fc85 (diff) |
data: reverseReferenceList refList -> list
Diffstat (limited to 'src/data')
-rw-r--r-- | src/data/things/composite.js | 2 | ||||
-rw-r--r-- | src/data/things/thing.js | 4 | ||||
-rw-r--r-- | src/data/things/track.js | 5 |
3 files changed, 5 insertions, 6 deletions
diff --git a/src/data/things/composite.js b/src/data/things/composite.js index 7f3463cf..138814d9 100644 --- a/src/data/things/composite.js +++ b/src/data/things/composite.js @@ -1244,8 +1244,8 @@ export function withResolvedReferenceList({ // This is its composable form. export function withReverseReferenceList({ data, + list: refListProperty, to = '#reverseReferenceList', - refList: refListProperty, }) { return compositeFrom(`Thing.common.reverseReferenceList`, [ earlyExitWithoutDependency(data, {value: []}), diff --git a/src/data/things/thing.js b/src/data/things/thing.js index f36b08bc..915474d4 100644 --- a/src/data/things/thing.js +++ b/src/data/things/thing.js @@ -275,10 +275,10 @@ export default class Thing extends CacheableObject { // wiki data provided, not the requesting Thing itself. reverseReferenceList({ data, - refList, + list, }) { return Thing.composite.from(`Thing.common.reverseReferenceList`, [ - Thing.composite.withReverseReferenceList({data, refList}), + Thing.composite.withReverseReferenceList({data, list}), Thing.composite.exposeDependency('#reverseReferenceList'), ]); }, diff --git a/src/data/things/track.js b/src/data/things/track.js index 733c81c9..87e796b9 100644 --- a/src/data/things/track.js +++ b/src/data/things/track.js @@ -287,7 +287,7 @@ export class Track extends Thing { featuredInFlashes: Thing.common.reverseReferenceList({ data: 'flashData', - refList: 'featuredTracks', + list: 'featuredTracks', }), }); @@ -559,8 +559,7 @@ export class Track extends Thing { return Thing.composite.from(`Track.composite.trackReverseReferenceList`, [ Thing.composite.withReverseReferenceList({ data: 'trackData', - refList: refListProperty, - originalTracksOnly: true, + list: refListProperty, }), { |