chore: removing unnecessary automate fix (#2417)

This commit is contained in:
Kristaps Fabians Geikins
2024-06-21 14:44:35 +03:00
committed by GitHub
parent adf0d7f05d
commit ff55476cbc
+1 -10
View File
@@ -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
}