fix(upload): add missing 'id' field to 'To Be Scanned' playlist creation for proper frontend rendering
This commit is contained in:
parent
cf39a3c2b1
commit
96fdf64060
@ -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: [],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user