Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMHSanaei <33454419+MHSanaei@users.noreply.github.com>2023-03-24 16:43:31 +0300
committerMHSanaei <33454419+MHSanaei@users.noreply.github.com>2023-03-24 16:43:31 +0300
commit826c7264b5cbea4e4149645bef220fd3c6a010e7 (patch)
treed877a02ce05a813cb9ae4f4eb9f7b0838cdafcb1 /web/service/inbound.go
parent162349f8c83dd07eba6bc4786b225a8fe6f65b24 (diff)
Add version and log
TGBOT: Add xray config to backup [TGBOT] add seach inbound
Diffstat (limited to 'web/service/inbound.go')
-rw-r--r--web/service/inbound.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/web/service/inbound.go b/web/service/inbound.go
index 9814b549..b6f4f031 100644
--- a/web/service/inbound.go
+++ b/web/service/inbound.go
@@ -634,13 +634,3 @@ func (s *InboundService) ClearClientIps(clientEmail string) error {
}
return nil
}
-
-func (s *InboundService) SearchInbounds(query string) ([]*model.Inbound, error) {
- db := database.GetDB()
- var inbounds []*model.Inbound
- err := db.Model(model.Inbound{}).Preload("ClientStats").Where("remark like ?", "%"+query+"%").Find(&inbounds).Error
- if err != nil && err != gorm.ErrRecordNotFound {
- return nil, err
- }
- return inbounds, nil
-} \ No newline at end of file