Skip to content

Commit

Permalink
Merge fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmacdonald committed Jan 3, 2025
1 parent add4038 commit 4da6840
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion internal/ban/background.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (monitor *ExpirationMonitor) Update(ctx context.Context) {
continue
}

person, errPerson := monitor.person.GetPersonBySteamID(ctx, ban.TargetID)
person, errPerson := monitor.person.GetPersonBySteamID(ctx, nil, ban.TargetID)
if errPerson != nil {
slog.Error("Failed to get expired Person", log.ErrAttr(errPerson))

Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ func serveCmd() *cobra.Command { //nolint:maintidx
person.NewPersonHandler(router, configUsecase, personUsecase, authUsecase)
report.NewReportHandler(router, reportUsecase, authUsecase, notificationUsecase)
servers.NewServerHandler(router, serversUC, stateUsecase, authUsecase, personUsecase)
srcds.NewSpeedrunHandler(router, speedruns, authUsecase)
srcds.NewSpeedrunHandler(router, speedruns, authUsecase, configUsecase)
srcds.NewSRCDSHandler(router, srcdsUsecase, serversUC, personUsecase, assets,
reportUsecase, banUsecase, networkUsecase, banGroupUsecase, demos, authUsecase, banASNUsecase, banNetUsecase,
configUsecase, notificationUsecase, stateUsecase, blocklistUsecase)
Expand Down
2 changes: 0 additions & 2 deletions internal/person/person_usecase.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@ import (
"github.com/jackc/pgx/v5"
"github.com/leighmacdonald/gbans/internal/domain"
"github.com/leighmacdonald/gbans/internal/httphelper"
"github.com/leighmacdonald/gbans/internal/queue"
"github.com/leighmacdonald/gbans/internal/thirdparty"
"github.com/leighmacdonald/gbans/pkg/log"
"github.com/leighmacdonald/gbans/pkg/stringutil"
"github.com/leighmacdonald/steamid/v4/steamid"
"github.com/leighmacdonald/steamweb/v2"
"github.com/riverqueue/river"
"golang.org/x/sync/errgroup"
)

Expand Down

0 comments on commit 4da6840

Please sign in to comment.