Updated account, groups relationships routes to post data instead of get

• Updated:
- account, groups relationships routes to post data instead of get
This commit is contained in:
mgabdev
2021-01-13 23:51:44 -05:00
parent 1ed29ddd53
commit fb75f33b12
5 changed files with 24 additions and 14 deletions

View File

@@ -542,7 +542,9 @@ export const fetchRelationships = (accountIds) => (dispatch, getState) => {
dispatch(fetchRelationshipsRequest(newAccountIds))
api(getState).get(`/api/v1/accounts/relationships?${newAccountIds.map(id => `id[]=${id}`).join('&')}`).then((response) => {
api(getState).post('/api/v1/accounts/relationships', {
accountIds: newAccountIds,
}).then((response) => {
dispatch(fetchRelationshipsSuccess(response.data))
}).catch((error) => {
dispatch(fetchRelationshipsFail(error))