chore: style, data, type fixes
This commit is contained in:
parent
2e09b0257c
commit
9f8a6cde5f
8 changed files with 55 additions and 61 deletions
|
@ -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'],
|
||||
|
|
Reference in a new issue