When creating a user the account search now displays countries accordingly
This commit is contained in:
parent
01a37eec58
commit
a0ad82ffba
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue