Lint Netlify functions

This commit is contained in:
Taevas 2024-04-27 21:22:48 +02:00
parent eb85319f73
commit d2f3cada52
11 changed files with 83 additions and 90 deletions

View file

@ -23,8 +23,7 @@ const handler: Handler = async () => {
url: string;
}>;
};
}>
(`http://ws.audioscrobbler.com/2.0/?method=user.getrecenttracks&user=TTTaevas&api_key=${process.env.API_LASTFM}&format=json&limit=1`);
}>(`http://ws.audioscrobbler.com/2.0/?method=user.getrecenttracks&user=TTTaevas&api_key=${process.env.API_LASTFM}&format=json&limit=1`);
const image = lastfm.recenttracks.track[0].image.find((i) => i.size == "large");
const track: LastfmInfo = {