From da208968d36fc5a9bb39bafc81ae539af236e38e Mon Sep 17 00:00:00 2001 From: Alexander Piskun <13381981+bigcat88@users.noreply.github.com> Date: Fri, 23 Aug 2024 14:52:58 +0300 Subject: [PATCH] fix: TaskProcessingAPI - unregister provider endpoint Signed-off-by: Alexander Piskun --- lib/Db/TaskProcessing/TaskProcessingProvider.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Db/TaskProcessing/TaskProcessingProvider.php b/lib/Db/TaskProcessing/TaskProcessingProvider.php index 639a35a7..24b2fb15 100644 --- a/lib/Db/TaskProcessing/TaskProcessingProvider.php +++ b/lib/Db/TaskProcessing/TaskProcessingProvider.php @@ -41,6 +41,9 @@ public function __construct(array $params = []) { $this->addType('provider', 'string'); $this->addType('custom_task_type', 'string'); + if (isset($params['id'])) { + $this->setId($params['id']); + } if (isset($params['app_id'])) { $this->setAppId($params['app_id']); } @@ -63,6 +66,7 @@ public function __construct(array $params = []) { public function jsonSerialize(): array { return [ + 'id' => $this->id, 'app_id' => $this->appId, 'name' => $this->name, 'display_name' => $this->displayName,