Skip to content

Commit

Permalink
Restyled by prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and mirkan1 committed May 4, 2024
1 parent b6cfb49 commit ce508a3
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions client/app/services/query-result.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { QueryResultError } from "@/services/query";
import { Auth } from "@/services/auth";
import { isString, uniqBy, each, isNumber, includes, extend, forOwn, get } from "lodash";

const JSONbigString = require('json-bigint')({ storeAsString: true });
const JSONbigString = require("json-bigint")({ storeAsString: true });
const logger = debug("redash:services:QueryResult");
const filterTypes = ["filter", "multi-filter", "multiFilter"];

Expand Down Expand Up @@ -46,9 +46,10 @@ function getColumnFriendlyName(column) {

const createOrSaveUrl = data => (data.id ? `api/query_results/${data.id}` : "api/query_results");
const QueryResultResource = {
get: ({ id }) => axios.get(`api/query_results/${id}`, {
transformResponse: (response) => JSONbigString.parse(response)
}),
get: ({ id }) =>
axios.get(`api/query_results/${id}`, {
transformResponse: response => JSONbigString.parse(response),
}),
post: data => axios.post(createOrSaveUrl(data), data),
};

Expand Down Expand Up @@ -347,9 +348,9 @@ class QueryResult {
queryResult.deferred.onStatusChange(ExecutionStatus.LOADING_RESULT);

axios
.get(`api/queries/${queryId}/results/${id}.json`, {
transformResponse: (response) => JSONbigString.parse(response)
})
.get(`api/queries/${queryId}/results/${id}.json`, {
transformResponse: response => JSONbigString.parse(response),
})
.then(response => {
// Success handler
queryResult.isLoadingResult = false;
Expand Down

0 comments on commit ce508a3

Please sign in to comment.