When creating a user the account search now displays countries accordingly

This commit is contained in:
Mike 2019-09-05 10:16:01 +01:00
parent 01a37eec58
commit a0ad82ffba
2 changed files with 4 additions and 3 deletions

View File

@ -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) {

View File

@ -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