From 2a863c51e9926bfe96eb7a64d78e601814fa2deb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=20Jurmanovi=C4=87?= Date: Sat, 13 Sep 2025 14:41:52 +0200 Subject: [PATCH] update state history query --- local/repository/state_history.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local/repository/state_history.go b/local/repository/state_history.go index 18a524c..de81458 100644 --- a/local/repository/state_history.go +++ b/local/repository/state_history.go @@ -187,7 +187,7 @@ func (r *StateHistoryRepository) GetRecentSessions(ctx context.Context, filter * FROM state_histories WHERE server_id = ? AND date_created BETWEEN ? AND ? GROUP BY session_id - HAVING COUNT(*) > 1 AND MAX(player_count) > 0 + HAVING MAX(player_count) > 0 ORDER BY date DESC LIMIT 10 `