mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #2988] [MERGED] fix: Restore from .db file fails #5319
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#5319
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/2988
Author: @Columbiysky
Created: 5/9/2025
Status: ✅ Merged
Merged: 5/14/2025
Merged by: @MHSanaei
Base:
main← Head:issue-2953📝 Commits (3)
9c7cd8bfix: issue 2953. Restore from .db file fails because8635bfaMerge branch 'main' into issue-295386d5d36Update server.go📊 Changes
1 file changed (+108 additions, -101 deletions)
View changed files
📝
web/service/server.go(+108 -101)📄 Description
What is the pull request?
In "web\service\server.go" "ImportDB(file multipart.File)" removed defer os.Remove(tempPath) because later in method it will be renamed "err = os.Rename(tempPath, config.GetDBPath())"
Also removed err = database.InitDB(config.GetDBPath()) and error condition because earlier it already has been inited when it was tempPath.
Issue #2953
Which part of the application is affected by the change?
Type of Changes
Screenshots
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.