From 434a51aecf9e95842cfc5870cc2c104dbfd200c2 Mon Sep 17 00:00:00 2001 From: Etienne Laurent Date: Tue, 29 Aug 2023 17:19:08 +0200 Subject: [PATCH] & --- lib/apiRoutes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/apiRoutes.js b/lib/apiRoutes.js index bbd27ff..1dd9561 100644 --- a/lib/apiRoutes.js +++ b/lib/apiRoutes.js @@ -32,7 +32,7 @@ module.exports = self => { // option in their module configuration function searchRelationships(obj) { const shouldRecurse = recursions <= maxRecursions; - const shouldInclude = self.apos.modules[obj.withType] & + const shouldInclude = self.apos.modules[obj.withType] && self.apos.modules[obj.withType].options.export !== false; if (obj.type === 'relationship') {