Skip to content

Commit

Permalink
feat: add occ command for task type toggling
Browse files Browse the repository at this point in the history
Signed-off-by: Jana Peper <[email protected]>
  • Loading branch information
janepie committed Dec 12, 2024
1 parent c50154d commit 35a920c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions core/Command/TaskProcessing/EnabledCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 35a920c

Please sign in to comment.