more refactors

This commit is contained in:
2026-02-08 19:57:12 +11:00
parent 1a2bdaf4cf
commit 97342e08fe
17 changed files with 334 additions and 308 deletions

View File

@@ -20,7 +20,7 @@ func SeasonsPage(
if pageOpts == nil {
return
}
var seasons *db.SeasonList
var seasons *db.List[db.Season]
if ok := db.WithReadTx(s, w, r, conn, func(ctx context.Context, tx bun.Tx) (bool, error) {
var err error
seasons, err = db.ListSeasons(ctx, tx, pageOpts)
@@ -44,7 +44,7 @@ func SeasonsList(
if pageOpts == nil {
return
}
var seasons *db.SeasonList
var seasons *db.List[db.Season]
if ok := db.WithReadTx(s, w, r, conn, func(ctx context.Context, tx bun.Tx) (bool, error) {
var err error
seasons, err = db.ListSeasons(ctx, tx, pageOpts)