From 71cfd9a10865cd79e8a79b37afd8c1faff98195d Mon Sep 17 00:00:00 2001 From: Chad Derya Date: Mon, 9 Sep 2019 11:45:30 +0100 Subject: [PATCH] Fixed a bug with accounts not filtering by buyer and seller --- src/api/account.js | 7 +------ src/views/accounts/list.vue | 8 ++++++-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/api/account.js b/src/api/account.js index 835fb738..e18ab6e8 100644 --- a/src/api/account.js +++ b/src/api/account.js @@ -4,12 +4,7 @@ import store from '../store/modules/settings.js' const apiUrl = 'https://users.service.development.therig.onlinefuelslabs.io' export function fetchList(query) { - const dto = { - 'page': query.page, - 'limit': query.limit, - 'platform': query.platform || store.state.platform - } - return axios.get(`${apiUrl}/account/search`, { params: dto }) + return axios.get(`${apiUrl}/account/search`, { params: query }) } export function fetchAccount(id) { diff --git a/src/views/accounts/list.vue b/src/views/accounts/list.vue index aab29ac6..97d568d3 100644 --- a/src/views/accounts/list.vue +++ b/src/views/accounts/list.vue @@ -49,7 +49,7 @@