From 38415d8b1dee2bb8e71a5fdf1387574bd812c6e5 Mon Sep 17 00:00:00 2001 From: Adam Oresten Date: Mon, 30 Aug 2021 23:19:35 +0100 Subject: [PATCH] Fixed not returning objects, rather than documents --- scripts/module.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/module.js b/scripts/module.js index 20e6a90..cb00b9c 100644 --- a/scripts/module.js +++ b/scripts/module.js @@ -58,7 +58,7 @@ const Tagger = { resolve(options.objects.filter(obj => { let tags = Tagger.getTags(obj); return tags && Tagger._testTags(inTags, tags, options); - })); + }).map(obj => obj?._object ?? obj)); }); },