Skip to content

Commit 63c671d

Browse files
added wakatime url env
1 parent 329198c commit 63c671d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ GITHUB_USERNAME="<github_username>"
1616

1717
DESCRIPTION="Your description"
1818

19+
WAKATIME_URL="https://wakatime.com/share"
1920
WAKATIME_GLOBAL="/@AndcoolSystems/c20041f4-a965-47c3-ac36-7234e622a980.json" // WakaTime Global stats
2021
WAKATIME_LANGS="/@AndcoolSystems/eaa20c39-4e68-49d3-8760-93e93fbf1ff5.json" // WakaTime Langs stats
2122

src/apis/apis.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ export class APIService {
173173
}
174174

175175
const response = await instance.get(
176-
`https://wakatime.com/share${path}`,
176+
`${process.env.WAKATIME_URL}${path}`,
177177
{ validateStatus: () => true }
178178
);
179179

@@ -206,7 +206,7 @@ export class APIService {
206206
}
207207

208208
const response = await instance.get(
209-
`https://wakatime.com/share${path}`,
209+
`${process.env.WAKATIME_URL}${path}`,
210210
{ validateStatus: () => true }
211211
);
212212

0 commit comments

Comments
 (0)