Skip to content

Commit

Permalink
fix: importing config from older release
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Oct 9, 2023
1 parent 5fed9a1 commit a5cf04e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions launcher/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,7 @@ if (!lock) {
const dirname = ConfigReleaseDirs[i]
if (dirname && fs.existsSync(path.join(configDir, dirname, 'db'))) {
importFrom = dirname
break
}
}
if (!importFrom && fs.existsSync(path.join(configDir, 'db'))) {
Expand Down
1 change: 1 addition & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ program.command('start', { isDefault: true, hidden: true }).action(() => {
if (fs.existsSync(previousDbPath)) {
// Found the one to copy
fs.copyFileSync(previousDbPath, path.join(configDir, 'db'))
break
}
}
}
Expand Down

0 comments on commit a5cf04e

Please sign in to comment.