Skip to content

Commit

Permalink
Fix: Resolve codeQL alerts (#2861)
Browse files Browse the repository at this point in the history
  • Loading branch information
ElinorW authored Nov 2, 2023
1 parent 656e10a commit 78ce457
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 26 deletions.
12 changes: 0 additions & 12 deletions index.js

This file was deleted.

12 changes: 0 additions & 12 deletions server.js

This file was deleted.

4 changes: 2 additions & 2 deletions src/app/services/actions/query-action-creator-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { ClientError } from '../../utils/error-utils/ClientError';
import { encodeHashCharacters } from '../../utils/query-url-sanitization';
import { translateMessage } from '../../utils/translate-messages';
import { authProvider, GraphClient } from '../graph-client';
import { DEFAULT_USER_SCOPES } from '../graph-constants';
import { DEFAULT_USER_SCOPES, GRAPH_URL } from '../graph-constants';
import { QUERY_GRAPH_SUCCESS } from '../redux-constants';
import { queryRunningStatus } from './query-loading-action-creators';

Expand Down Expand Up @@ -55,7 +55,7 @@ export function createAnonymousRequest(query: IQuery, proxyUrl: string, queryRun
});
}

const authToken = '{token:https://graph.microsoft.com/}';
const authToken = `{token:${GRAPH_URL}/}`;
let headers = {
Authorization: `Bearer ${authToken}`,
'Content-Type': 'application/json',
Expand Down

0 comments on commit 78ce457

Please sign in to comment.