Lint project

This commit is contained in:
2022-07-14 16:02:31 +02:00
parent f379ca7ff8
commit 48b01c6b2b
89 changed files with 144 additions and 124 deletions

View File

@@ -18,7 +18,7 @@ interface StatsResponse {
async function getDevelopmentHours(): Promise<void> {
try {
const response = await axios.get<{ data: StatsResponse[]}>(`https://wakatime.com/share/@${Env.get('WAKATIME_USER')}/${Env.get('WAKATIME_ID')}.json`)
const response = await axios.get<{ data: StatsResponse[] }>(`https://wakatime.com/share/@${Env.get('WAKATIME_USER')}/${Env.get('WAKATIME_ID')}.json`)
if (response.status === 200) {
const mapped_stats = response.data.data.map((item: StatsResponse) => {
return {