From 35a920c290b90631757b58d5bead17afa22218e4 Mon Sep 17 00:00:00 2001 From: Jana Peper Date: Wed, 11 Dec 2024 18:18:54 +0100 Subject: [PATCH] feat: add occ command for task type toggling Signed-off-by: Jana Peper --- core/Command/TaskProcessing/EnabledCommand.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/core/Command/TaskProcessing/EnabledCommand.php b/core/Command/TaskProcessing/EnabledCommand.php index c25251d61c4ec..5c5adbfb8531f 100644 --- a/core/Command/TaskProcessing/EnabledCommand.php +++ b/core/Command/TaskProcessing/EnabledCommand.php @@ -46,11 +46,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int } else { $taskTypeSettings = json_decode($json, true); } - if ($enabled) { - $taskTypeSettings[$taskType] = true; - } else { - $taskTypeSettings[$taskType] = false; - } + + $taskTypeSettings[$taskType] = $enabled; $this->config->setAppValue('core', 'ai.taskprocessing_type_preferences', json_encode($taskTypeSettings));