fix: remove unused dependencies
All checks were successful
Build Docker Image / Build-Docker-Image (push) Successful in 4m18s
Build and Push Docker Image / Build-And-Push-Docker-Image (push) Successful in 4m53s

This commit was merged in pull request #134.
This commit is contained in:
2025-05-28 20:52:00 +02:00
parent be7209a4c6
commit 1e7f2878ba
5 changed files with 32 additions and 40 deletions

View File

@@ -123,10 +123,10 @@ func createHandler(d *sqlx.DB, serverSettings *types.Settings) http.Handler {
mailService := service.NewMail(serverSettings)
authService := service.NewAuth(authDb, randomService, clockService, mailService, serverSettings)
accountService := service.NewAccount(d, randomService, clockService, serverSettings)
treasureChestService := service.NewTreasureChest(d, randomService, clockService, serverSettings)
transactionService := service.NewTransaction(d, randomService, clockService, serverSettings)
transactionRecurringService := service.NewTransactionRecurring(d, randomService, clockService, serverSettings)
accountService := service.NewAccount(d, randomService, clockService)
treasureChestService := service.NewTreasureChest(d, randomService, clockService)
transactionService := service.NewTransaction(d, randomService, clockService)
transactionRecurringService := service.NewTransactionRecurring(d, randomService, clockService)
render := handler.NewRender()
indexHandler := handler.NewIndex(render)

View File

@@ -33,18 +33,16 @@ type Account interface {
}
type AccountImpl struct {
db *sqlx.DB
clock Clock
random Random
settings *types.Settings
db *sqlx.DB
clock Clock
random Random
}
func NewAccount(db *sqlx.DB, random Random, clock Clock, settings *types.Settings) Account {
func NewAccount(db *sqlx.DB, random Random, clock Clock) Account {
return AccountImpl{
db: db,
clock: clock,
random: random,
settings: settings,
db: db,
clock: clock,
random: random,
}
}

View File

@@ -37,18 +37,16 @@ type Transaction interface {
}
type TransactionImpl struct {
db *sqlx.DB
clock Clock
random Random
settings *types.Settings
db *sqlx.DB
clock Clock
random Random
}
func NewTransaction(db *sqlx.DB, random Random, clock Clock, settings *types.Settings) Transaction {
func NewTransaction(db *sqlx.DB, random Random, clock Clock) Transaction {
return TransactionImpl{
db: db,
clock: clock,
random: random,
settings: settings,
db: db,
clock: clock,
random: random,
}
}

View File

@@ -36,18 +36,16 @@ type TransactionRecurring interface {
}
type TransactionRecurringImpl struct {
db *sqlx.DB
clock Clock
random Random
settings *types.Settings
db *sqlx.DB
clock Clock
random Random
}
func NewTransactionRecurring(db *sqlx.DB, random Random, clock Clock, settings *types.Settings) TransactionRecurring {
func NewTransactionRecurring(db *sqlx.DB, random Random, clock Clock) TransactionRecurring {
return TransactionRecurringImpl{
db: db,
clock: clock,
random: random,
settings: settings,
db: db,
clock: clock,
random: random,
}
}

View File

@@ -34,18 +34,16 @@ type TreasureChest interface {
}
type TreasureChestImpl struct {
db *sqlx.DB
clock Clock
random Random
settings *types.Settings
db *sqlx.DB
clock Clock
random Random
}
func NewTreasureChest(db *sqlx.DB, random Random, clock Clock, settings *types.Settings) TreasureChest {
func NewTreasureChest(db *sqlx.DB, random Random, clock Clock) TreasureChest {
return TreasureChestImpl{
db: db,
clock: clock,
random: random,
settings: settings,
db: db,
clock: clock,
random: random,
}
}