function getPlaylistsForDump
getPlaylistsForDump(
dumpId: string,
requestingUserId?: string
): Playlist[]

Returns up to 20 playlists that hold dump dumpId, newest first, for GET /api/dumps/:dumpId/playlists. Private playlists are left out, except requestingUserId's own. The route checks first that the caller may see the dump.

Parameters

dumpId: string
optional
requestingUserId: string

Return Type

Usage

import { getPlaylistsForDump } from "api/services/playlist-service.ts";