fix this
This commit is contained in:
parent
85578611a5
commit
a200575bd8
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user