« get me outta code hell

data: reverseReferenceList refList -> list - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data
diff options
context:
space:
mode:
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
commit007c70642a60ed83bd840f550aa06563d4ba6a99 (patch)
treebda1c20f580025acce470b65a6218137e22db373 /src/data
parent2d7c536ee91a8f5bf8f16db1fc2d0a4d8bb4fc85 (diff)
data: reverseReferenceList refList -> list
Diffstat (limited to 'src/data')
-rw-r--r--src/data/things/composite.js2
-rw-r--r--src/data/things/thing.js4
-rw-r--r--src/data/things/track.js5
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,
         }),
 
         {