fix: change property name

This commit is contained in:
Derrick Hammer 2024-03-17 08:33:24 -04:00
parent 1bd4527300
commit 61012ae394
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 2 deletions

View File

@ -23,11 +23,11 @@ func BuildApis(cm *config.Manager) fx.Option {
type initParams struct {
fx.In
Protocols []registry.API `group:"api"`
Apis []registry.API `group:"api"`
}
options = append(options, fx.Invoke(func(params initParams) error {
for _, protocol := range params.Protocols {
for _, protocol := range params.Apis {
err := protocol.Init()
if err != nil {
return err