Remove useless condition

This commit is contained in:
2022-01-17 22:02:03 +01:00
parent 10052ea8bf
commit 4ed75bd71b

View File

@@ -16,8 +16,6 @@ async function LogSpotifyHistory(): Promise<void> {
if (last_entry && new Date().getTime() - last_entry.duration <= new Date(last_entry.date).getTime()) return
if (last_entry && last_entry.item_name === current.name) return
await Song.create({
date: new Date(current.started_at!),
duration: current.duration,