Skip to content

Commit 6f64335

Browse files
authored
upgrade to nextcloud 31 (#359)
* fix JSONResponse Signed-off-by: hohanov <hohanov@gmail.com> * fix Nextcloud version Signed-off-by: hohanov <hohanov@gmail.com> --------- Signed-off-by: hohanov <hohanov@gmail.com>
1 parent df3fcf3 commit 6f64335

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

appinfo/info.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Additionally, the community document server only supports running on x86-64 Linu
3131
<screenshot>https://raw.githubusercontent.com/nextcloud/documentserver_community/master/screenshots/main.png</screenshot>
3232
<screenshot>https://raw.githubusercontent.com/nextcloud/documentserver_community/master/screenshots/new.png</screenshot>
3333
<dependencies>
34-
<nextcloud min-version="21" max-version="30"/>
34+
<nextcloud min-version="21" max-version="31"/>
3535
</dependencies>
3636

3737
<background-jobs>

lib/Controller/ConvertController.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ public function __construct(DocumentStore $documentStore, URLDecoder $urlDecoder
5050
public function convert(bool $async, string $url, string $outputtype, string $filetype, string $title, string $key) {
5151
if ($outputtype === $filetype) {
5252
return new JSONResponse([
53-
'FileUrl' => $url,
54-
'Percent' => "100",
55-
'EndConvert' => "True",
53+
'fileUrl' => $url,
54+
'percent' => 100,
55+
'endConvert' => true,
5656
]);
5757
} else {
5858
$documentId = (int)$key;
@@ -68,9 +68,9 @@ public function convert(bool $async, string $url, string $outputtype, string $fi
6868
);
6969

7070
return new JSONResponse([
71-
'FileUrl' => $url,
72-
'Percent' => "100",
73-
'EndConvert' => "True",
71+
'fileUrl' => $url,
72+
'percent' => 100,
73+
'endConvert' => true,
7474
]);
7575
}
7676
}

0 commit comments

Comments
 (0)