We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64c5ecc commit 500b08bCopy full SHA for 500b08b
web/service/inbound.go
@@ -167,7 +167,7 @@ func (s *InboundService) AddTraffic(traffics []*xray.Traffic) (err error) {
167
168
func (s *InboundService) DisableInvalidInbounds() (int64, error) {
169
db := database.GetDB()
170
- now := time.Now()
+ now := time.Now().Unix() * 1000
171
result := db.Model(model.Inbound{}).
172
Where("((total > 0 and up + down >= total) or (expiry_time > 0 and expiry_time <= ?)) and enable = ?", now, true).
173
Update("enable", false)
0 commit comments