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:
authorHamidreza Ghavami <hamid.r.gh.1998@gmail.com>2023-05-05 22:52:39 +0300
committerHamidreza Ghavami <hamid.r.gh.1998@gmail.com>2023-05-05 22:52:39 +0300
commit26f160fb89f1356f9ec69e2bdfad32d5b543325a (patch)
tree73389e77f5ca2369e5fff721667d653ba99ec227 /web/service/server.go
parent0a5811adf8077aa008d4ff795092d8ca547999e1 (diff)
add MigrateDB func for a single source of truth
Diffstat (limited to 'web/service/server.go')
-rw-r--r--web/service/server.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/web/service/server.go b/web/service/server.go
index 06ce08c5..36d79b8b 100644
--- a/web/service/server.go
+++ b/web/service/server.go
@@ -469,8 +469,7 @@ func (s *ServerService) ImportDB(file multipart.File) error {
defer os.Rename(fallbackPath, config.GetDBPath())
return common.NewErrorf("Error migrating db: %v", err)
}
- s.inboundService.MigrationRequirements()
- s.inboundService.RemoveOrphanedTraffics()
+ s.inboundService.MigrateDB()
// remove fallback file
defer os.Remove(fallbackPath)