From 270a8c0abbcc69f1f120cf213f4ba5b936821de3 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Sat, 2 Nov 2024 10:00:55 -0700 Subject: [PATCH] fix: feed slug --- package-lock.json | 6 +++--- queries/views/media/movies.psql | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index f7f63293..e45c2f7b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -738,9 +738,9 @@ "license": "MIT" }, "node_modules/@types/ws": { - "version": "8.5.12", - "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.12.tgz", - "integrity": "sha512-3tPRkv1EtkDpzlgyKyI8pGsGZAGPEaXeu0DOj5DI25Ja91bdAYddYHbADRYVrZMRbfW+1l5YwXVDKohDJNQxkQ==", + "version": "8.5.13", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.13.tgz", + "integrity": "sha512-osM/gWBTPKgHV8XkTunnegTRIsvF6owmf5w+JtAfOw472dptdm0dlGv4xCt6GwQRcC2XVOvvRE/0bAoQcL2QkA==", "dev": true, "license": "MIT", "dependencies": { diff --git a/queries/views/media/movies.psql b/queries/views/media/movies.psql index 372f03b7..aff3d7e8 100644 --- a/queries/views/media/movies.psql +++ b/queries/views/media/movies.psql @@ -83,7 +83,7 @@ WHERE r.movies_id = m.id) AS related_movies, CASE WHEN m.star_rating IS NOT NULL AND m.last_watched IS NOT NULL THEN - json_build_object('title', m.title, 'url', CONCAT('https://coryd.dev/movies/', m.slug), 'date', m.last_watched, 'description', m.description, 'image', CONCAT('/', df.filename_disk), 'rating', m.star_rating) + json_build_object('title', m.title, 'url', CONCAT('https://coryd.dev', m.slug), 'date', m.last_watched, 'description', m.description, 'image', CONCAT('/', df.filename_disk), 'rating', m.star_rating) ELSE NULL END AS feed