Skip to content

Commit

Permalink
removed unnecessary constant
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmaya-panda1 committed Jan 11, 2024
1 parent 563f1de commit 6793bd7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ServerClient/ADXClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { ADXResponse, RawADXResponse } from "./ADXResponse";
const packageJson = require('../../package.json');

type ADXTokenProvider = () => Promise<string>;
const version = packageJson.version;

declare global {
interface Crypto {
Expand Down Expand Up @@ -73,7 +72,7 @@ export class ADXClient {
Authorization: `Bearer ${token}`,
"x-ms-client-request-id": `KTrender;${self.crypto.randomUUID()}`,
"x-ms-app": "KustoTrender",
"x-ms-client-version": version,
"x-ms-client-version": packageJson.version,
"x-ms-user" : "KustoTrender"
},
body: JSON.stringify(body),
Expand Down

0 comments on commit 6793bd7

Please sign in to comment.