add with_relationships where necessary

This commit is contained in:
Shpuld Shpuldson 2020-05-13 17:48:31 +03:00
parent 7a0e554daf
commit 8e39971098
4 changed files with 14 additions and 9 deletions

View file

@ -428,8 +428,8 @@ const users = {
store.commit('setUserForNotification', notification)
})
},
searchUsers (store, query) {
return store.rootState.api.backendInteractor.searchUsers({ query })
searchUsers (store, { query, withRelationships }) {
return store.rootState.api.backendInteractor.searchUsers({ query, withRelationships })
.then((users) => {
store.commit('addNewUsers', users)
return users