refactor: inject data fix dependencies

This commit is contained in:
2026-06-20 19:14:14 +02:00
committed by Milas Holsting
parent 9ae57ad2b1
commit 87eb4c6403
8 changed files with 32 additions and 14 deletions

View File

@@ -9,7 +9,11 @@ import (
type Fix struct {
ID string
Apply func(ctx context.Context, sqlDB *sql.DB) error
Apply func(ctx context.Context, sqlDB *sql.DB, deps Dependencies) error
}
type Dependencies struct {
DefaultAvatarURL func(username string) string
}
var registered []Fix