fix: pass in config repo instead of using the global getter (#4039)

This commit is contained in:
Gabe Kangas
2024-11-30 23:38:27 -08:00
committed by GitHub
parent d8aed658a8
commit c5ac3a30af
2 changed files with 8 additions and 12 deletions
@@ -38,7 +38,7 @@ func New(datastore *data.Datastore) ConfigRepository {
datastore: datastore,
}
migrateDatastoreValues(datastore)
migrateDatastoreValues(datastore, &r)
// Set the server initialization date if needed.
if hasSetInitDate, _ := r.GetServerInitTime(); hasSetInitDate == nil || !hasSetInitDate.Valid {