mirror of
https://github.com/standardnotes/app.git
synced 2026-01-11 19:56:41 +00:00
chore: fix some backups not being imported
This commit is contained in:
parent
ec1c0a041c
commit
cee89adc83
1 changed files with 2 additions and 4 deletions
|
|
@ -15,10 +15,8 @@ export class GetBackupFileType implements SyncUseCaseInterface<BackupFileType> {
|
|||
|
||||
if (hasEncryptedItem && hasDecryptedItemsKey) {
|
||||
return Result.ok(BackupFileType.EncryptedWithNonEncryptedItemsKey)
|
||||
} else if (!hasEncryptedItem) {
|
||||
return Result.ok(BackupFileType.FullyDecrypted)
|
||||
} else {
|
||||
return Result.ok(BackupFileType.Corrupt)
|
||||
}
|
||||
|
||||
return Result.ok(BackupFileType.FullyDecrypted)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue