This commit is contained in:
Evert Prants 2019-06-17 22:04:58 +03:00
parent 85578611a5
commit a200575bd8
Signed by: evert
GPG Key ID: 1688DA83D222D0B5

View File

@ -43,9 +43,9 @@ async function insertDB (db, track) {
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.year || null, Math.floor(track.duration)])
track.year || null, Math.floor(track.duration), null])
return track
}