Skip to content

Commit

Permalink
fix: subfolder support for api_domain wakatime api (#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

1 comment on commit 7907a5d

@vercel
Copy link

@vercel vercel bot commented on 7907a5d Aug 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.