fix: renter needs to be set on storage

This commit is contained in:
Derrick Hammer 2024-02-01 18:12:09 -05:00
parent 15b527933f
commit 446e81ca19
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 0 deletions

View File

@ -43,6 +43,7 @@ type StorageServiceParams struct {
Db *gorm.DB Db *gorm.DB
Accounts *account.AccountServiceDefault Accounts *account.AccountServiceDefault
Cron *cron.CronServiceDefault Cron *cron.CronServiceDefault
Renter *renter.RenterDefault
} }
var Module = fx.Module("storage", var Module = fx.Module("storage",
@ -81,6 +82,7 @@ func NewStorageService(lc fx.Lifecycle, params StorageServiceParams) *StorageSer
db: params.Db, db: params.Db,
accounts: params.Accounts, accounts: params.Accounts,
cron: params.Cron, cron: params.Cron,
renter: params.Renter,
} }
lc.Append(fx.Hook{ lc.Append(fx.Hook{