Skip to content

Commit

Permalink
when authenticated, the query shouldn't be sent over to the /jobs end…
Browse files Browse the repository at this point in the history
…point (#3831)
  • Loading branch information
Omer Lachish authored May 26, 2019
1 parent 020dc35 commit 4143bd3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/app/services/query-result.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,10 @@ function QueryResultService($resource, $timeout, $q, QueryResultError, Auth) {
const loadResult = () => (Auth.isAuthenticated()
? this.loadResult()
: this.loadLatestCachedResult(query, parameters));
const params = Auth.isAuthenticated() ? { id: this.job.id } : { queryId: query, id: this.job.id };

resource.get(
{ queryId: query, id: this.job.id },
params,
(jobResponse) => {
this.update(jobResponse);

Expand Down

0 comments on commit 4143bd3

Please sign in to comment.