Skip to content

Commit

Permalink
server: log on kara creation time update
Browse files Browse the repository at this point in the history
and save it too :3
  • Loading branch information
odrling committed Nov 20, 2024
1 parent 7212d1b commit f67b347
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,12 @@ func fixCreationTime(db *gorm.DB) {
// reset creation time to zero if time is Unix Epoch
// could happen for karaoke that are not uploaded (yet)
kara.KaraokeCreationTime = time.Time{}
} else {
continue
}

getLogger().Printf("setting kara %d creation time\n", kara.ID)
db.Save(kara)
}
}
}
Expand Down

0 comments on commit f67b347

Please sign in to comment.