11 lines
345 B
JavaScript
11 lines
345 B
JavaScript
// Playlist data access helpers.
|
|
|
|
async function fetchPlaylistById(pool, id) {
|
|
const [rows] = await pool.query('SELECT id, name, fade_between_slides, skip_unavailable_rtmp, canvas_id, created_at, modified_at, created_by, modified_by FROM c_playlists WHERE id = ?', [id]);
|
|
return rows[0] || null;
|
|
}
|
|
|
|
module.exports = {
|
|
fetchPlaylistById
|
|
};
|