mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-09-03 02:20:04 +00:00
feat: add support for custom wakatime api domain (#620)
* feat: add support for custom wakatime api domain * Update src/fetchers/wakatime-fetcher.js * Update src/fetchers/wakatime-fetcher.js Co-authored-by: 춤추는망고 <ensia96@gmail.com> Co-authored-by: Nathan Chu <63111210+nthnchu@users.noreply.github.com> Co-authored-by: 춤추는망고 <ensia96@gmail.com>
This commit is contained in:
co-authored by
Nathan Chu
춤추는망고
parent
72f94ad77b
commit
c1a88baad4
+2
-1
@@ -25,6 +25,7 @@ module.exports = async (req, res) => {
|
||||
custom_title,
|
||||
locale,
|
||||
layout,
|
||||
api_domain,
|
||||
} = req.query;
|
||||
|
||||
res.setHeader("Content-Type", "image/svg+xml");
|
||||
@@ -34,7 +35,7 @@ module.exports = async (req, res) => {
|
||||
}
|
||||
|
||||
try {
|
||||
const last7Days = await fetchLast7Days({ username });
|
||||
const last7Days = await fetchLast7Days({ username, api_domain });
|
||||
|
||||
let cacheSeconds = clampValue(
|
||||
parseInt(cache_seconds || CONSTANTS.TWO_HOURS, 10),
|
||||
|
||||
Reference in New Issue
Block a user