mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-14 12:14:33 +01:00
Remove useless condition
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user