From ec92deb4bfb5abc516670ec90c0e0fa516d50779 Mon Sep 17 00:00:00 2001 From: cubap Date: Fri, 15 Nov 2024 16:16:08 -0600 Subject: [PATCH] fixes #158 probably hotfix this in --- classes/Project/ProjectFactory.mjs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/classes/Project/ProjectFactory.mjs b/classes/Project/ProjectFactory.mjs index 9c63cbc..04b9d1e 100644 --- a/classes/Project/ProjectFactory.mjs +++ b/classes/Project/ProjectFactory.mjs @@ -155,9 +155,7 @@ export default class ProjectFactory { in: { $mergeObjects: [ '$$value', - { - $$this: { $arrayElemAt: ['$rolePermissions.$$this', 0] } - } + { $arrayElemAt: ['$rolePermissions', { $indexOfArray: ['$rolePermissions', '$$this'] }] } ] } }