Add missing config parameter in services

This commit is contained in:
Bubka 2023-10-30 12:57:19 +01:00
parent d74e0cedac
commit 0bc488057d
3 changed files with 9 additions and 9 deletions

View File

@ -16,7 +16,7 @@ export default {
},
assign(accountsIds, groupId, config = {}) {
return apiClient.post('/groups/' + groupId + '/assign', {ids: accountsIds})
return apiClient.post('/groups/' + groupId + '/assign', { ids: accountsIds }, { ...config })
},
delete(id, config = {}) {

View File

@ -40,11 +40,11 @@ export default {
},
withdraw(ids, config = {}) {
return apiClient.patch('/twofaccounts/withdraw?ids=' + ids.join())
return apiClient.patch('/twofaccounts/withdraw?ids=' + ids.join(), { ...config })
},
saveOrder(orderedIds, config = {}) {
return apiClient.post('/twofaccounts/reorder', { orderedIds: orderedIds })
return apiClient.post('/twofaccounts/reorder', { orderedIds: orderedIds }, { ...config })
},
batchDelete(ids, config = {}) {

View File

@ -11,8 +11,8 @@ export default {
* @param {any} value
* @returns promise
*/
updatePreference(name, value) {
return apiClient.put('/user/preferences/' + name, { value: value })
updatePreference(name, value, config = {}) {
return apiClient.put('/user/preferences/' + name, { value: value }, { ...config })
},
/**
@ -23,7 +23,7 @@ export default {
* @returns promise
*/
getWebauthnDevices(config = {}) {
return webClient.get('/webauthn/credentials', {...config})
return webClient.get('/webauthn/credentials', { ...config })
},
/**
@ -34,7 +34,7 @@ export default {
* @returns promise
*/
revokeWebauthnDevice(credentialId, config = {}) {
return webClient.delete('/webauthn/credentials/' + credentialId, {...config})
return webClient.delete('/webauthn/credentials/' + credentialId, { ...config })
},
/**
@ -44,7 +44,7 @@ export default {
* @returns
*/
getPersonalAccessTokens(config = {}) {
return webClient.get('/oauth/personal-access-tokens', {...config})
return webClient.get('/oauth/personal-access-tokens', { ...config })
},
/**
@ -54,7 +54,7 @@ export default {
* @returns
*/
deletePersonalAccessToken(tokenId, config = {}) {
return webClient.delete('/oauth/personal-access-tokens/' + tokenId, {...config})
return webClient.delete('/oauth/personal-access-tokens/' + tokenId, { ...config })
}
}