fix this
This commit is contained in:
parent
85578611a5
commit
a200575bd8
@ -43,9 +43,9 @@ async function insertDB (db, track) {
|
|||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
await db.run('INSERT INTO Track VALUES (NULL,?,?,?,?,?,?,?,?)',
|
await db.run('INSERT INTO Track VALUES (NULL,?,?,?,?,?,?,?,?,?)',
|
||||||
[track.title, track.artist, track.file, track.album || '', track.genre || null, track.track || null,
|
[track.title, track.artist, track.file, track.album || '', track.genre || null, track.track || null,
|
||||||
track.year || null, Math.floor(track.duration)])
|
track.year || null, Math.floor(track.duration), null])
|
||||||
|
|
||||||
return track
|
return track
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user