mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-05 20:54:14 +00:00
fix: update inbound traffic query to use case-insensitive email matching and remove redundant enable filter
This commit is contained in:
parent
2002b84b19
commit
07ac160518
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue