mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 06:08:46 -04:00
Fix tests: Adjust constructor signature
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit 6d568b0d32)
This commit is contained in:
parent
cac51714e2
commit
ad645c96f3
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue