diff options
author | Marcel Klehr <mklehr@gmx.net> | 2024-05-07 12:46:21 +0200 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2024-05-14 11:38:41 +0200 |
commit | 4a3b9b826ea532991f8636b621f92760c321e93e (patch) | |
tree | 46c57ff0648993a2025ca7d25d0c491fc66f92b5 /core | |
parent | fff2fb8e77c7a58aa9323c13daa355d6d8f3a118 (diff) | |
download | nextcloud-server-4a3b9b826ea532991f8636b621f92760c321e93e.tar.gz nextcloud-server-4a3b9b826ea532991f8636b621f92760c321e93e.zip |
refactor: identifier is now customId/custom_id
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'core')
-rw-r--r-- | core/Controller/TaskProcessingApiController.php | 4 | ||||
-rw-r--r-- | core/ResponseDefinitions.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/core/Controller/TaskProcessingApiController.php b/core/Controller/TaskProcessingApiController.php index d28d0baeb5d..0a63ccac14b 100644 --- a/core/Controller/TaskProcessingApiController.php +++ b/core/Controller/TaskProcessingApiController.php @@ -114,8 +114,8 @@ class TaskProcessingApiController extends \OCP\AppFramework\OCSController { #[UserRateLimit(limit: 20, period: 120)] #[AnonRateLimit(limit: 5, period: 120)] #[ApiRoute(verb: 'POST', url: '/schedule', root: '/taskprocessing')] - public function schedule(array $input, string $type, string $appId, string $identifier = ''): DataResponse { - $task = new Task($type, $input, $appId, $this->userId, $identifier); + public function schedule(array $input, string $type, string $appId, string $customId = ''): DataResponse { + $task = new Task($type, $input, $appId, $this->userId, $customId); try { $this->taskProcessingManager->scheduleTask($task); diff --git a/core/ResponseDefinitions.php b/core/ResponseDefinitions.php index bdf0005c950..bd6879796be 100644 --- a/core/ResponseDefinitions.php +++ b/core/ResponseDefinitions.php @@ -200,7 +200,7 @@ namespace OCA\Core; * appId: string, * input: array<string, numeric|list<numeric>|string|list<string>>, * output: ?array<string, numeric|list<numeric>|string|list<string>>, - * identifier: ?string, + * customId: ?string, * completionExpectedAt: ?int, * progress: ?float * } |