fix: improve WakaTime range order

This commit is contained in:
Rick Staa
2023-05-08 21:45:27 +02:00
parent 7ea55d05ad
commit d80d7668b6
+1 -1
View File
@@ -11,7 +11,7 @@ const fetchWakatimeStats = async ({ username, api_domain }) => {
if (!username) throw new MissingParamError(["username"]);
// Loop through available ranges to get user data.
for (const range of ["all_time", "last_7_days", "last_year"]) {
for (const range of ["all_time", "last_year", "last_7_days"]) {
try {
const { data } = await axios.get(
`https://${