chore: remove unnecessary response properties

This commit is contained in:
Cory Dransfeldt 2023-10-10 11:40:17 -07:00
parent e12527b122
commit 20a824b0a6

View file

@ -49,15 +49,12 @@ export default async () => {
if (Object.keys(traktRes).length) {
if (traktRes['type'] === 'episode') {
return Response.json({
title: traktRes['show']['title'],
episode: traktRes['episode']['title'],
text: `📺 ${traktRes['show']['title']}${traktRes['episode']['title']}`,
})
}
if (traktRes['type'] === 'movie') {
return Response.json({
title: traktRes['movie']['title'],
text: `🎥 ${traktRes['movie']['title']}`,
})
}
@ -76,8 +73,6 @@ export default async () => {
const artist = aliasArtist(track['artistName'])
return Response.json({
artist,
title: track['name'],
text: `🎧 ${track['name']} by ${artist}`,
})
}