From f67b3476495ced65838c415a2a32f9b9a1f7102b Mon Sep 17 00:00:00 2001 From: odrling Date: Wed, 20 Nov 2024 17:23:33 +0100 Subject: [PATCH] server: log on kara creation time update and save it too :3 --- server/model.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/model.go b/server/model.go index 8bf0597..df318cd 100644 --- a/server/model.go +++ b/server/model.go @@ -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) } } }