summaryrefslogtreecommitdiffstats
path: root/apps/files/src
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-04-09 09:59:30 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-05-26 08:25:00 +0200
commitf1f8fa1e9988abee50a10b741b3ae8be44463af3 (patch)
treeb4a4045a0ce1621dff5942e4ff6d02a5c605175f /apps/files/src
parentaccfe5b82d9086c6890463f961d94b8c92167417 (diff)
downloadnextcloud-server-f1f8fa1e9988abee50a10b741b3ae8be44463af3.tar.gz
nextcloud-server-f1f8fa1e9988abee50a10b741b3ae8be44463af3.zip
Move remnants of ocs api requests to v2 endpoint
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/src')
-rw-r--r--apps/files/src/components/TransferOwnershipDialogue.vue6
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/files/src/components/TransferOwnershipDialogue.vue b/apps/files/src/components/TransferOwnershipDialogue.vue
index 7bc27e88ecf..f0025d69ee1 100644
--- a/apps/files/src/components/TransferOwnershipDialogue.vue
+++ b/apps/files/src/components/TransferOwnershipDialogue.vue
@@ -162,7 +162,7 @@ export default {
this.loadingUsers = true
try {
- const response = await axios.get(generateOcsUrl('apps/files_sharing/api/v1') + 'sharees', {
+ const response = await axios.get(generateOcsUrl('apps/files_sharing/api/v1', 2) + 'sharees', {
params: {
format: 'json',
itemType: 'file',
@@ -172,10 +172,6 @@ export default {
},
})
- if (response.data.ocs.meta.statuscode !== 100) {
- logger.error('Error fetching suggestions', { response })
- }
-
this.userSuggestions = {}
response.data.ocs.data.exact.users.concat(response.data.ocs.data.users).forEach(user => {
Vue.set(this.userSuggestions, user.value.shareWith, {