Remove unneeded parameters

Signed-off-by: Louis Chemineau <louis@chmn.me>
pull/1744/head
Louis Chemineau 2023-04-17 18:26:51 +02:00
rodzic 7c80556ae4
commit e9f9957a6d
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -201,7 +201,7 @@ const actions = {
commit('setCurrentAccount', account)
dispatch('fetchAccountInfo', account)
},
async followAccount(context, { currentAccount, accountToFollow }) {
async followAccount(context, { accountToFollow }) {
try {
const response = await axios.put(generateUrl('/apps/social/api/v1/current/follow?account=' + accountToFollow))
if (response.data.status === -1) {
@ -214,7 +214,7 @@ const actions = {
logger.error(`Failed to follow user ${accountToFollow}`, { error })
}
},
async unfollowAccount(context, { currentAccount, accountToUnfollow }) {
async unfollowAccount(context, { accountToUnfollow }) {
try {
const response = await axios.delete(generateUrl('/apps/social/api/v1/current/follow?account=' + accountToUnfollow))
if (response.data.status === -1) {