Fix reset all inbound bug

This commit is contained in:
Alireza Ahmadi
2023-04-05 18:37:09 +02:00
parent cdbf742b66
commit 1969120c94

View File

@@ -552,6 +552,7 @@ func (s *InboundService) ResetAllTraffics() error {
db := database.GetDB()
result := db.Model(model.Inbound{}).
Where("user_id > ?", 0).
Updates(map[string]interface{}{"up": 0, "down": 0})
err := result.Error