« get me outta code hell

find: find.artistIncludingAliases; exclude in find.artist - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-01-30 11:19:34 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-01-30 14:30:05 -0400
commit12a8b6d1148c7d616296c8ab4ed86cbc856e3861 (patch)
tree64274f909888229bddbb3146f6cdc8e73feb8d84 /src
parent825f0b3130a7141baf9111b6e7a783004a66b5fb (diff)
find: find.artistIncludingAliases; exclude in find.artist
Diffstat (limited to 'src')
-rw-r--r--src/find.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/find.js b/src/find.js
index db35e0d8..9ed084d7 100644
--- a/src/find.js
+++ b/src/find.js
@@ -155,6 +155,12 @@ const find = {
 
   artist: findHelper({
     referenceTypes: ['artist', 'artist-gallery'],
+
+    include: artist => !artist.isAlias,
+  }),
+
+  artistIncludingAliases: findHelper({
+    referenceTypes: ['artist', 'artist-gallery'],
   }),
 
   artTag: findHelper({