Skip to content

Commit

Permalink
Fix:Bad backup causing other backup files to not be displayed #1961
Browse files Browse the repository at this point in the history
  • Loading branch information
advplyr committed Sep 30, 2023
1 parent 9ebe23e commit c2c8cf9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/controllers/MeController.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ class MeController {

const libraryItem = await Database.libraryItemModel.getOldById(localProgress.libraryItemId)
if (!libraryItem) {
Logger.error(`[MeController] syncLocalMediaProgress invalid local media progress object no library item`, localProgress)
Logger.error(`[MeController] syncLocalMediaProgress invalid local media progress object no library item with id "${localProgress.libraryItemId}"`, localProgress)
continue
}

Expand Down
3 changes: 1 addition & 2 deletions server/managers/BackupManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class BackupManager {
let entries
try {
entries = await zip.entries()
} catch(error){
} catch (error) {
// Not a valid zip file
Logger.error('[BackupManager] Failed to read backup file - backup might not be a valid .zip file', tempPath, error)
return res.status(400).send('Failed to read backup file - backup might not be a valid .zip file')
Expand Down Expand Up @@ -182,7 +182,6 @@ class BackupManager {
data = await zip.entryData('details')
} catch (error) {
Logger.error(`[BackupManager] Failed to unzip backup "${fullFilePath}"`, error)
await zip.close()
continue
}

Expand Down

0 comments on commit c2c8cf9

Please sign in to comment.