Skip to content

Commit

Permalink
fix: subfolder support for api_domain wakatime api (anuraghazra#1235)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandroPerez authored Aug 14, 2021
1 parent ae6b56b commit 7907a5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fetchers/wakatime-fetcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const fetchWakatimeStats = async ({ username, api_domain, range }) => {
try {
const { data } = await axios.get(
`https://${
api_domain ? api_domain.replace(/[^a-z-.0-9]/gi, "") : "wakatime.com"
api_domain ? api_domain.replace(/\/$/gi, "") : "wakatime.com"
}/api/v1/users/${username}/stats/${range || ''}?is_including_today=true`,
);

Expand Down

0 comments on commit 7907a5d

Please sign in to comment.