chore: scrobble bugs

This commit is contained in:
Cory Dransfeldt 2024-05-09 14:46:08 -07:00
parent b0d837b4b7
commit 9abd1dbd32
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View file

@ -55,7 +55,7 @@ export default async (request) => {
const { data: artistData, error: artistError } = await supabase
.from('artists')
.select('*')
.eq('name_key', artistKey)
.eq('name_string', artist)
.single()
if (artistError && artistError.code === 'PGRST116') {
@ -63,8 +63,8 @@ export default async (request) => {
{
mbid: null,
image: `https://coryd.dev/media/artists/${artistKey}.jpg`,
key: albumKey,
name: album,
key: artistKey,
name: artist,
tentative: true
}
])