@ -31,7 +31,7 @@ abstract class AppDatabase : RoomDatabase() {
.fallbackToDestructiveMigration()
.addCallback(object : Callback() {
override fun onDestructiveMigration(db: SupportSQLiteDatabase) {
GlobalScope.launch { Restore.restore(Backup.defaultPath) }
GlobalScope.launch { Restore.restore(Backup.backupPath) }
}
})
.build()
@ -45,7 +45,7 @@ object Restore {
restore(Backup.defaultPath)
restore(Backup.backupPath)
suspend fun restore(path: String) {