chore: check for non 200 status code on auth test
Kieran Klukas 9 months ago ec050805 942485c2
··· 9 9 Authorization: `Bearer ${process.env.HACKATIME_API_KEY}`, 10 10 }, 11 11 }, 12 12 - ).then((res) => (res.status === 404 ? null : res.json())); 12 12 + ).then((res) => (res.status === 200 ? res.json() : null)); 13 13 14 14 if (hackatimeUser) { 15 15 if (context?.respond)