fix: cfg access

This commit is contained in:
2025-05-25 16:52:10 +02:00
parent 05ee30f6db
commit 8e22a3ac05
3 changed files with 39 additions and 28 deletions

View File

@ -21,9 +21,10 @@ type AuthHandler struct {
cfg *config.AppConfig
}
func NewAuthHandler(repo *repository.Queries) *AuthHandler {
func NewAuthHandler(repo *repository.Queries, cfg *config.AppConfig) *AuthHandler {
return &AuthHandler{
repo: repo,
repo,
cfg,
}
}