chore: fix some backups not being imported

This commit is contained in:
Aman Harwara 2024-05-09 20:18:40 +05:30
parent ec1c0a041c
commit cee89adc83
No known key found for this signature in database
GPG key ID: FCE19AA227F56E46

View file

@ -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)
}
}