diff options
Diffstat (limited to 'src/commands/config/disable.ts')
-rw-r--r-- | src/commands/config/disable.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/config/disable.ts b/src/commands/config/disable.ts index 007cdb1..f6caf88 100644 --- a/src/commands/config/disable.ts +++ b/src/commands/config/disable.ts @@ -71,7 +71,7 @@ export default class DisableCommand extends BushCommand { if (global) { if (action === 'toggle') { - const disabledCommands = (await Global.findByPk(this.client.config.dev ? 'development' : 'production')) + const disabledCommands = (await Global.findByPk(this.client.config.environment)) .disabledCommands; action = disabledCommands.includes(commandID) ? 'disable' : 'enable'; } |