fix: feed slug
This commit is contained in:
parent
2375bc9f29
commit
270a8c0abb
2 changed files with 4 additions and 4 deletions
6
package-lock.json
generated
6
package-lock.json
generated
|
@ -738,9 +738,9 @@
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/@types/ws": {
|
"node_modules/@types/ws": {
|
||||||
"version": "8.5.12",
|
"version": "8.5.13",
|
||||||
"resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.12.tgz",
|
"resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.13.tgz",
|
||||||
"integrity": "sha512-3tPRkv1EtkDpzlgyKyI8pGsGZAGPEaXeu0DOj5DI25Ja91bdAYddYHbADRYVrZMRbfW+1l5YwXVDKohDJNQxkQ==",
|
"integrity": "sha512-osM/gWBTPKgHV8XkTunnegTRIsvF6owmf5w+JtAfOw472dptdm0dlGv4xCt6GwQRcC2XVOvvRE/0bAoQcL2QkA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -83,7 +83,7 @@ WHERE
|
||||||
r.movies_id = m.id) AS related_movies,
|
r.movies_id = m.id) AS related_movies,
|
||||||
CASE WHEN m.star_rating IS NOT NULL
|
CASE WHEN m.star_rating IS NOT NULL
|
||||||
AND m.last_watched IS NOT NULL THEN
|
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
|
ELSE
|
||||||
NULL
|
NULL
|
||||||
END AS feed
|
END AS feed
|
||||||
|
|
Reference in a new issue