« get me outta code hell

find: pass thingConstructors into include() - 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>2025-04-06 17:39:06 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-04-10 16:02:41 -0300
commit9696dbe1688dcf9641875ea7a4fab50c5776017b (patch)
tree486dd3a561ce65cc7022284ea7c0e3452a5c4e26 /src/data
parent498aa6648fe134810d60a090517189241d63f652 (diff)
find: pass thingConstructors into include()
Allow include() to conveniently replicate the same behavior
that it does by default, e.g. if [Thing.findThisThingOnly]
has been expressly disabled.
Diffstat (limited to 'src/data')
-rw-r--r--src/data/checks.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data/checks.js b/src/data/checks.js
index a70f7d06..44f640a6 100644
--- a/src/data/checks.js
+++ b/src/data/checks.js
@@ -50,7 +50,7 @@ export function reportDirectoryErrors(wikiData, {
     if (!thingData) continue;
 
     for (const thing of thingData) {
-      if (findSpec.include && !findSpec.include(thing)) {
+      if (findSpec.include && !findSpec.include(thing, thingConstructors)) {
         continue;
       }