chore: style, data, type fixes

This commit is contained in:
Cory Dransfeldt 2024-06-12 13:26:52 -07:00
parent 2e09b0257c
commit 9f8a6cde5f
No known key found for this signature in database
8 changed files with 55 additions and 61 deletions

View file

@ -16,6 +16,7 @@ export default async function () {
image,
release_date,
release_link,
total_plays,
artists (name_string, mbid, country)
`)
.gt('release_date', today)
@ -25,7 +26,7 @@ export default async function () {
return
}
return data.map(album => {
return data.filter(album => !album['total_plays'] || !album['total_plays'] > 0).map(album => {
return {
artist: album['artists']['name_string'],
title: album['name'],