aboutsummaryrefslogtreecommitdiffstats
path: root/core/Command/TaskProcessing/EnabledCommand.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/Command/TaskProcessing/EnabledCommand.php')
-rw-r--r--core/Command/TaskProcessing/EnabledCommand.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/Command/TaskProcessing/EnabledCommand.php b/core/Command/TaskProcessing/EnabledCommand.php
index b382de12a81..7195d19a7a4 100644
--- a/core/Command/TaskProcessing/EnabledCommand.php
+++ b/core/Command/TaskProcessing/EnabledCommand.php
@@ -1,4 +1,5 @@
<?php
+
/**
* SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
@@ -47,15 +48,15 @@ class EnabledCommand extends Base {
} else {
$taskTypeSettings = json_decode($json, true, flags: JSON_THROW_ON_ERROR);
}
-
+
$taskTypeSettings[$taskType] = $enabled;
-
+
$this->config->setAppValue('core', 'ai.taskprocessing_type_preferences', json_encode($taskTypeSettings));
$this->writeArrayInOutputFormat($input, $output, $taskTypeSettings);
return 0;
} catch (\JsonException $e) {
throw new \JsonException('Error in TaskType DB entry');
}
-
+
}
}