errata
This commit is contained in:
parent
fb2aca06de
commit
0a031aae20
1 changed files with 4 additions and 4 deletions
|
@ -219,8 +219,8 @@ const users = {
|
|||
addFriends ({ rootState, commit }, fetchBy) {
|
||||
return new Promise((resolve, reject) => {
|
||||
const user = rootState.users.usersObject[fetchBy]
|
||||
const sinceId = user.lastFriendId
|
||||
rootState.api.backendInteractor.fetchFriends({ id: user.id, sinceId })
|
||||
const maxId = user.lastFriendId
|
||||
rootState.api.backendInteractor.fetchFriends({ id: user.id, maxId })
|
||||
.then((friends) => {
|
||||
commit('addFriends', { id: user.id, friends })
|
||||
resolve(friends)
|
||||
|
@ -231,8 +231,8 @@ const users = {
|
|||
},
|
||||
addFollowers ({ rootState, commit }, fetchBy) {
|
||||
const user = rootState.users.usersObject[fetchBy]
|
||||
const sinceId = user.lastFollowerId
|
||||
return rootState.api.backendInteractor.fetchFollowers({ id: user.id, sinceId })
|
||||
const maxId = user.lastFollowerId
|
||||
return rootState.api.backendInteractor.fetchFollowers({ id: user.id, maxId })
|
||||
.then((followers) => {
|
||||
commit('addFollowers', { id: user.id, followers })
|
||||
return followers
|
||||
|
|
Loading…
Reference in a new issue