diff --git a/internal/db/watchlist_ids.go b/internal/db/watchlist_ids.go index 770bc6a..ba32d67 100644 --- a/internal/db/watchlist_ids.go +++ b/internal/db/watchlist_ids.go @@ -2,6 +2,7 @@ package db import ( "context" + "mal/pkg/errlog" "strings" ) @@ -24,7 +25,7 @@ func (q *Queries) GetUserWatchlistAnimeIDs(ctx context.Context, userID string, a if err != nil { return nil, err } - defer func() { _ = rows.Close() }() + defer errlog.Close(rows, "failed to close watchlist id rows") matches := make([]int64, 0, len(animeIDs)) for rows.Next() {