From 07ac1605181a0366fd4fb1a4122a4443a20957e0 Mon Sep 17 00:00:00 2001 From: SadeghKalami Date: Sat, 16 May 2026 05:23:49 +0330 Subject: [PATCH] fix: update inbound traffic query to use case-insensitive email matching and remove redundant enable filter --- web/service/inbound.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/service/inbound.go b/web/service/inbound.go index 61c950fa..486016e4 100644 --- a/web/service/inbound.go +++ b/web/service/inbound.go @@ -2508,7 +2508,7 @@ func (s *InboundService) disableSubQuotaClients(tx *gorm.DB) (bool, int64, error var sum struct{ Total int64 } if err := tx.Model(xray.ClientTraffic{}). Select("COALESCE(SUM(up + down), 0) AS total"). - Where("email IN ? AND enable = ?", batch, true). + Where("LOWER(email) IN ?", batch). Scan(&sum).Error; err != nil { continue }