]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix tests: Adjust constructor signature 39771/head
authorMarcel Klehr <mklehr@gmx.net>
Wed, 19 Jul 2023 15:33:11 +0000 (17:33 +0200)
committerMarcel Klehr <mklehr@gmx.net>
Wed, 9 Aug 2023 08:05:24 +0000 (10:05 +0200)
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit 6d568b0d32d1255f76608e9d6b4b154dc57e5fea)

core/Controller/TextProcessingApiController.php

index 58036fb25bc5362050bc24af5d1ae162b9392d82..9ed332644e14548b43ccad8c9a885ff7e640b452 100644 (file)
@@ -91,7 +91,7 @@ class TextProcessingApiController extends \OCP\AppFramework\OCSController {
         */
        public function schedule(string $input, string $type, string $appId, string $identifier = ''): DataResponse {
                try {
-                       $task = new Task($type, $input, $this->userId, $appId, $identifier);
+                       $task = new Task($type, $input, $appId, $this->userId, $identifier);
                } catch (InvalidArgumentException) {
                        return new DataResponse(['message' => $this->l->t('Requested task type does not exist')], Http::STATUS_BAD_REQUEST);
                }