diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2025-04-14 21:45:54 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2025-04-14 21:45:54 -0300 |
commit | 236ba0b9583e6eac9f4f51ff4371757cd51d8a22 (patch) | |
tree | 027cea8836f8691acc00c1c4d26c1f64a64c8747 /src/data/checks.js | |
parent | 76e31544eabbb5f104a8464c1edfaf1e6d884820 (diff) |
checks: _commentary -> _content, check crediting sources & lyrics preview
Diffstat (limited to 'src/data/checks.js')
-rw-r--r-- | src/data/checks.js | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/src/data/checks.js b/src/data/checks.js index ecdfdb10..52024144 100644 --- a/src/data/checks.js +++ b/src/data/checks.js @@ -184,7 +184,8 @@ export function filterReferenceErrors(wikiData, { groups: 'group', artTags: '_artTag', referencedArtworks: '_artwork', - commentary: '_commentary', + commentary: '_content', + creditSources: '_content', }], ['artTagData', { @@ -192,7 +193,8 @@ export function filterReferenceErrors(wikiData, { }], ['flashData', { - commentary: '_commentary', + commentary: '_content', + creditSources: '_content', }], ['groupCategoryData', { @@ -232,7 +234,9 @@ export function filterReferenceErrors(wikiData, { artTags: '_artTag', referencedArtworks: '_artwork', mainReleaseTrack: '_trackMainReleasesOnly', - commentary: '_commentary', + commentary: '_content', + creditSources: '_content', + lyrics: '_content', }], ['wikiInfo', { @@ -267,11 +271,12 @@ export function filterReferenceErrors(wikiData, { let writeProperty = true; switch (findFnKey) { - case '_commentary': + case '_content': if (value) { value = - value - .map(entry => CacheableObject.getUpdateValue(entry, 'artists')); + value.map(entry => + CacheableObject.getUpdateValue(entry, 'artists') ?? + []); } writeProperty = false; @@ -327,7 +332,7 @@ export function filterReferenceErrors(wikiData, { findFn = boundFind.artTag; break; - case '_commentary': + case '_content': findFn = findArtistOrAlias; break; @@ -459,7 +464,7 @@ export function filterReferenceErrors(wikiData, { } } - if (findFnKey === '_commentary') { + if (findFnKey === '_content') { filter( value, {message: errorMessage}, decorateErrorWithIndex(refs => |