[M] Move variable names

This commit is contained in:
2025-11-19 17:07:50 +08:00
parent e556a5182b
commit bbd3e00ca7
4 changed files with 2 additions and 2 deletions
@@ -2,5 +2,5 @@ import type { PageServerLoad } from './$types';
import { getSongsFromPlaylist, listPlaylists } from "$lib/server/songs.ts";
export const load: PageServerLoad = async ({ params }) => ({
playlist: await getSongsFromPlaylist(params.slug)
playlist: await getSongsFromPlaylist(params.id)
})
@@ -3,7 +3,7 @@ import { listPlaylists } from "$lib/server/songs.ts";
// TODO: slug should be "my" or "recommended", fetch accordingly
export const load: PageServerLoad = async ({ params }) => {
const isMine = params.slug === 'my'
const isMine = params.category === 'my'
return {
playlists: await listPlaylists(),
isMine