aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/src
diff options
context:
space:
mode:
authorskjnldsv <skjnldsv@protonmail.com>2024-02-22 10:20:21 +0100
committerskjnldsv <skjnldsv@protonmail.com>2024-02-23 14:12:14 +0100
commit7b9581129014f0c430272b8288ed9e45c0362499 (patch)
treec2ca8e55a17159d23ab5f3b8243c1a43997972d0 /apps/files_external/src
parentf1c79cd264ebadd0c191bd29abb9280c49aec3da (diff)
downloadnextcloud-server-7b9581129014f0c430272b8288ed9e45c0362499.tar.gz
nextcloud-server-7b9581129014f0c430272b8288ed9e45c0362499.zip
chore(files_sharing): use `OCSResponse` from `@nextcloud/typings`
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files_external/src')
-rw-r--r--apps/files_external/src/services/externalStorage.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/src/services/externalStorage.ts b/apps/files_external/src/services/externalStorage.ts
index ea4db8a1fe8..e973a7ec236 100644
--- a/apps/files_external/src/services/externalStorage.ts
+++ b/apps/files_external/src/services/externalStorage.ts
@@ -21,8 +21,8 @@
*/
// eslint-disable-next-line n/no-extraneous-import
import type { AxiosResponse } from 'axios'
-import type { OCSResponse } from '../../../files_sharing/src/services/SharingService'
import type { ContentsWithRoot } from '@nextcloud/files'
+import type { OCSResponse } from '@nextcloud/typings/ocs'
import { Folder, Permission } from '@nextcloud/files'
import { generateOcsUrl, generateRemoteUrl, generateUrl } from '@nextcloud/router'
@@ -83,7 +83,7 @@ const entryToFolder = (ocsEntry: MountEntry): Folder => {
}
export const getContents = async (): Promise<ContentsWithRoot> => {
- const response = await axios.get(generateOcsUrl('apps/files_external/api/v1/mounts')) as AxiosResponse<OCSResponse<MountEntry>>
+ const response = await axios.get(generateOcsUrl('apps/files_external/api/v1/mounts')) as AxiosResponse<OCSResponse<MountEntry[]>>
const contents = response.data.ocs.data.map(entryToFolder)
return {