refactor: inject data fix dependencies

This commit is contained in:
2026-06-20 19:14:14 +02:00
parent 3fa6f76de0
commit ed59c9f8b5
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