Skip to content

Commit

Permalink
chore: removing unnecessary automate fix (#2417)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabis94 authored Jun 21, 2024
1 parent adf0d7f commit ff55476
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions packages/server/modules/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit ff55476

Please sign in to comment.