diff options
| author | (quasar) nebula <qznebula@protonmail.com> | 2025-11-20 15:51:14 -0400 |
|---|---|---|
| committer | (quasar) nebula <qznebula@protonmail.com> | 2025-11-25 07:06:49 -0400 |
| commit | f44b69b6079c80da98aafe9022cb68923e52a03c (patch) | |
| tree | f5899a51a4dba595a031b7a40c3e0ebd1a468380 /src/data/things/artist.js | |
| parent | 03142771e556f9e115709832a98d81942528f10a (diff) | |
data, yaml: save() -> connect(), Thing.wikiData & friends
HOLY GUACAMOLE
Diffstat (limited to 'src/data/things/artist.js')
| -rw-r--r-- | src/data/things/artist.js | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/src/data/things/artist.js b/src/data/things/artist.js index 24c99698..a5601d60 100644 --- a/src/data/things/artist.js +++ b/src/data/things/artist.js @@ -41,7 +41,11 @@ import {artistTotalDuration} from '#composite/things/artist'; export class Artist extends Thing { static [Thing.referenceType] = 'artist'; - static [Thing.wikiDataArray] = 'artistData'; + static [Thing.wikiData] = 'artistData'; + + static [Thing.constitutibleProperties] = [ + 'avatarArtwork', // from inline fields + ]; static [Thing.getPropertyDescriptors] = () => ({ // Update & expose @@ -343,19 +347,6 @@ export class Artist extends Thing { documentMode: allInOne, documentThing: Artist, - save(results) { - const artists = results; - const artistAliases = artists.flatMap(artist => artist.artistAliases); - const artistData = [...artists, ...artistAliases]; - - const artworkData = - artistData - .filter(artist => artist.hasAvatar) - .map(artist => artist.avatarArtwork); - - return {artistData, artworkData}; - }, - sort({artistData}) { sortAlphabetically(artistData); }, |