+ client: use search params for querylog request

This commit is contained in:
Ildar Kamalov
2019-10-15 12:28:49 +03:00
parent 92b6adbdc1
commit 7b29c56791
7 changed files with 32 additions and 20 deletions

View File

@@ -15,7 +15,7 @@ export const getLogs = config => async (dispatch) => {
dispatch(getLogsRequest());
try {
const { filter, lastRowTime: older_than } = config;
const logs = normalizeLogs(await apiClient.getQueryLog({ filter, older_than }));
const logs = normalizeLogs(await apiClient.getQueryLog({ ...filter, older_than }));
dispatch(getLogsSuccess({ logs, ...config }));
} catch (error) {
dispatch(addErrorToast({ error }));