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:
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