fix(upload): add missing 'id' field to 'To Be Scanned' playlist creation for proper frontend rendering

This commit is contained in:
Geert Rademakes 2025-08-14 14:12:32 +02:00
parent cf39a3c2b1
commit 96fdf64060

View File

@ -108,6 +108,7 @@ router.post('/upload', upload.single('file'), async (req, res) => {
let toScanPlaylist = await Playlist.findOne({ name: 'To Be Scanned' });
if (!toScanPlaylist) {
toScanPlaylist = new Playlist({
id: 'to-be-scanned',
name: 'To Be Scanned',
type: 'playlist',
tracks: [],