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' });
|
let toScanPlaylist = await Playlist.findOne({ name: 'To Be Scanned' });
|
||||||
if (!toScanPlaylist) {
|
if (!toScanPlaylist) {
|
||||||
toScanPlaylist = new Playlist({
|
toScanPlaylist = new Playlist({
|
||||||
|
id: 'to-be-scanned',
|
||||||
name: 'To Be Scanned',
|
name: 'To Be Scanned',
|
||||||
type: 'playlist',
|
type: 'playlist',
|
||||||
tracks: [],
|
tracks: [],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user