Fix comment for upload

This commit is contained in:
Nicholas W 2024-08-31 22:28:53 -07:00 committed by GitHub
parent 184858efae
commit 3233017759
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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