[M] Move variable names
This commit is contained in:
+1
-1
@@ -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)
|
||||
})
|
||||
+1
-1
@@ -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
|
||||
Reference in New Issue
Block a user