mirror of
https://github.com/screentinker/screentinker.git
synced 2026-08-13 22:03:13 -06:00
devices.playlist_id is ON DELETE SET NULL, so the database detached correctly — but the handler emitted nothing, so a screen kept displaying the deleted playlist until it happened to reconnect or was restarted. You delete a playlist to take content off the wall; the wall carried on showing it. Every sibling mutation in this file already pushes (publish, assign), and DELETE /devices/:id/playlist was given a push for precisely this reason: "so the screen stops, rather than leaving the old content up until something else happens to update it". The affected devices are read before the delete, since the association is gone the moment it runs. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Uaeo9MvzKoyXuN6ZsbhtkL |
||
|---|---|---|
| .. | ||
| config | ||
| db | ||
| lib | ||
| middleware | ||
| player | ||
| routes | ||
| scripts | ||
| services | ||
| test | ||
| ws | ||
| .gitignore | ||
| config.js | ||
| package-lock.json | ||
| package.json | ||
| server.js | ||
| smoke-ui.js | ||
| version.js | ||