fix: renter needs to be set on storage
This commit is contained in:
parent
15b527933f
commit
446e81ca19
|
@ -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{
|
||||||
|
|
Loading…
Reference in New Issue