From 1cd8439759fb96dbded824900698ebb421ebe80b Mon Sep 17 00:00:00 2001 From: Omer Lachish Date: Sun, 26 May 2019 11:57:10 +0300 Subject: [PATCH] when authenticated, the query shouldn't be sent over to the /jobs endpoint --- client/app/services/query-result.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/app/services/query-result.js b/client/app/services/query-result.js index 2a0fa47923..a267cee050 100644 --- a/client/app/services/query-result.js +++ b/client/app/services/query-result.js @@ -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);