fix: url consistency

This commit is contained in:
Cory Dransfeldt 2024-05-27 09:05:50 -07:00
parent 54b08d5b4b
commit a7bf71f1b3
No known key found for this signature in database
3 changed files with 5 additions and 5 deletions

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "17.4.7", "version": "17.4.8",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "coryd.dev", "name": "coryd.dev",
"version": "17.4.7", "version": "17.4.8",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@cdransf/api-text": "^1.2.3", "@cdransf/api-text": "^1.2.3",

View file

@ -1,6 +1,6 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "17.4.7", "version": "17.4.8",
"description": "The source for my personal site. Built using 11ty.", "description": "The source for my personal site. Built using 11ty.",
"type": "module", "type": "module",
"scripts": { "scripts": {

View file

@ -64,7 +64,7 @@ export default async function() {
return { return {
title: formattedData['content'], title: formattedData['content'],
description: formattedData['description'], description: formattedData['description'],
url: `https://coryd.dev/music?ts=${chart['week']}`, url: `https://coryd.dev/music?ts=${chart['week']}#artists`,
date: chart['date'] date: chart['date']
} }
}) })
@ -85,7 +85,7 @@ export default async function() {
const aggregatedData = aggregateData(listens) const aggregatedData = aggregateData(listens)
const artistNames = aggregatedData.map(artist => artist.name) const artistNames = aggregatedData.map(artist => artist.name)
let { data: artistsData, error: artistsError } = await supabase let { error: artistsError } = await supabase
.from('artists') .from('artists')
.select('name_string, genre, mbid') .select('name_string, genre, mbid')
.in('name_string', artistNames) .in('name_string', artistNames)