From ff55476cbc2b9b852e3749a78b67bbf3dc9bdd71 Mon Sep 17 00:00:00 2001 From: Kristaps Fabians Geikins Date: Fri, 21 Jun 2024 14:44:35 +0300 Subject: [PATCH] chore: removing unnecessary automate fix (#2417) --- packages/server/modules/index.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/packages/server/modules/index.js b/packages/server/modules/index.js index b82ad87688..394a3df8f1 100644 --- a/packages/server/modules/index.js +++ b/packages/server/modules/index.js @@ -62,16 +62,7 @@ const getEnabledModuleNames = () => { 'webhooks' ] - if (FF_AUTOMATE_MODULE_ENABLED) { - // Push in after 'auth', important for scope order? - const authIdx = moduleNames.indexOf('auth') - if (authIdx !== -1) { - moduleNames.splice(authIdx + 1, 0, 'automate') - } else { - moduleNames.push('automate') - } - } - + if (FF_AUTOMATE_MODULE_ENABLED) moduleNames.push('automate') if (FF_GENDOAI_MODULE_ENABLED) moduleNames.push('gendo') return moduleNames }