mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-08 23:04:51 +02:00
Migrate backups manager
This commit is contained in:
@ -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()
|
||||
}
|
Reference in New Issue
Block a user