diff --git a/src/api/account.js b/src/api/account.js index e18ab6e8..8af61093 100644 --- a/src/api/account.js +++ b/src/api/account.js @@ -3,8 +3,9 @@ import store from '../store/modules/settings.js' const apiUrl = 'https://users.service.development.therig.onlinefuelslabs.io' -export function fetchList(query) { - return axios.get(`${apiUrl}/account/search`, { params: query }) +export function fetchList() { + return axios.get(`${apiUrl}/account/search?page=1&limit=2000&platform=${store.state.platform}`) + // temporary fix. It seems query parameters are not going trhough as intended. Will have to look at backend? } export function fetchAccount(id) { diff --git a/src/views/users/components/UserDetail.vue b/src/views/users/components/UserDetail.vue index dd6dc103..c9f45b02 100644 --- a/src/views/users/components/UserDetail.vue +++ b/src/views/users/components/UserDetail.vue @@ -228,7 +228,7 @@ export default { }, getRemoteAccountList(query) { query = {} - query.platform = 'OLFDE' + query.platform = this.$store.state.platform query.limit = 100 fetchList(query).then(response => { if (!response.data.docs) return