diff --git a/cmd/acb-matchmaker/map_fairness.go b/cmd/acb-matchmaker/map_fairness.go index be20e5c..a9c9f2d 100644 --- a/cmd/acb-matchmaker/map_fairness.go +++ b/cmd/acb-matchmaker/map_fairness.go @@ -257,7 +257,7 @@ func (m *Matchmaker) promoteClassicMaps(ctx context.Context) error { WHERE player_count = $1 AND status = 'active' AND engagement > 0 - AND created_at < NOW() - INTERVAL '3 months' + AND created_at <= NOW() - INTERVAL '3 months' ORDER BY engagement DESC LIMIT $2 ) sub diff --git a/cmd/acb-matchmaker/map_fairness_test.go b/cmd/acb-matchmaker/map_fairness_test.go index 2aae9f8..115746e 100644 --- a/cmd/acb-matchmaker/map_fairness_test.go +++ b/cmd/acb-matchmaker/map_fairness_test.go @@ -269,7 +269,7 @@ func TestThreeMonthAgeCheck(t *testing.T) { createdAt := now.Add(-tc.createdAgo) // Use a simpler check: created_at < NOW() - 3 months cutoff := now.AddDate(0, -classicMinMonths, 0) - eligibleByDate := createdAt.Before(cutoff) + eligibleByDate := !createdAt.After(cutoff) if eligibleByDate != tc.eligible { t.Errorf("created %v ago: eligible=%v, want %v", tc.createdAgo, eligibleByDate, tc.eligible) }