From d28e04697429b607c38042ac09418adfceb06baf Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 16 Nov 2024 13:51:25 -0400 Subject: data: withResolvedArtworkReferenceList -> ...Annotated --- src/data/composite/wiki-properties/referencedArtworkList.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src/data/composite/wiki-properties/referencedArtworkList.js') diff --git a/src/data/composite/wiki-properties/referencedArtworkList.js b/src/data/composite/wiki-properties/referencedArtworkList.js index 251944e5..db4d4637 100644 --- a/src/data/composite/wiki-properties/referencedArtworkList.js +++ b/src/data/composite/wiki-properties/referencedArtworkList.js @@ -4,18 +4,15 @@ import {validateAnnotatedReferenceList} from '#validators'; import {combineWikiDataArrays} from '#wiki-data'; import {exposeDependency} from '#composite/control-flow'; -import {withResolvedArtworkReferenceList} from '#composite/wiki-data'; +import {withResolvedAnnotatedReferenceList} from '#composite/wiki-data'; export default templateCompositeFrom({ annotation: `referencedArtworkList`, - update: ({ - [input.staticValue('class')]: thingClass, - [input.staticValue('referenceType')]: referenceType, - }) => ({ + update: { validate: validateAnnotatedReferenceList(['album', 'track']), - }), + }, steps: () => [ { @@ -46,12 +43,12 @@ export default templateCompositeFrom({ }), }, - withResolvedArtworkReferenceList({ + withResolvedAnnotatedReferenceList({ list: input.updateValue(), data: '#data', find: '#find', }), - exposeDependency({dependency: '#resolvedArtworkReferenceList'}), + exposeDependency({dependency: '#resolvedAnnotatedReferenceList'}), ], }); -- cgit 1.3.0-6-gf8a5