Skip to content

Commit

Permalink
Fix comment for upload
Browse files Browse the repository at this point in the history
  • Loading branch information
nichwall authored Sep 1, 2024
1 parent 184858e commit 3233017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/controllers/MiscController.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class MiscController {
return res.status(404).send(`Library not found with id ${libraryId}`)
}
const folder = await Database.libraryFolderModel.findByPk(folderId)
// Verify the folder matches the library ID so we don't accidentally add a podcast to the wrong path
// Verify the folder matches the library ID so we don't accidentally upload to the wrong library
if (!folder || folder.libraryId !== library.id) {
return res.status(404).send(`Folder not found with id ${folderId} in library ${library.name}`)
}
Expand Down

0 comments on commit 3233017

Please sign in to comment.