Migrate backups manager

This commit is contained in:
advplyr 2023-07-08 14:40:49 -05:00
parent 0a179e4eed
commit 254ba1f089
8 changed files with 202 additions and 107 deletions

View file

@ -798,8 +798,7 @@ module.exports.migrate = async (DatabaseModels) => {
/**
* @returns {boolean} true if old database exists
*/
module.exports.checkShouldMigrate = async (force = false) => {
module.exports.checkShouldMigrate = async () => {
if (await oldDbFiles.checkHasOldDb()) return true
if (!force) return false
return oldDbFiles.checkHasOldDbZip()
}