Optimisations and updated readme

This commit is contained in:
2026-07-14 12:50:52 +01:00
parent 9709457b73
commit ff23474a54
33 changed files with 3073 additions and 2426 deletions
+2 -2
View File
@@ -23,7 +23,7 @@ async function uniqueScreenSlug(pool, baseSlug) {
async function fetchScreenById(pool, id) {
const [rows] = await pool.query(`
SELECT s.*, p.name AS playlist_name
SELECT s.id, s.name, s.slug, s.playlist_id, s.created_at, s.modified_at, s.created_by, s.modified_by, p.name AS playlist_name
FROM screens s
LEFT JOIN playlists p ON p.id = s.playlist_id
WHERE s.id = ?
@@ -32,7 +32,7 @@ async function fetchScreenById(pool, id) {
}
async function fetchScreenEditData(pool) {
const [playlists] = await pool.query('SELECT * FROM playlists ORDER BY id DESC');
const [playlists] = await pool.query('SELECT id, name, fade_between_slides, created_at, modified_at, created_by, modified_by FROM playlists ORDER BY id DESC');
return { playlists };
}