Fix:Handle enabling/disabling library watchers #2775

This commit is contained in:
advplyr 2024-03-31 14:57:55 -05:00
parent a9c9c447f1
commit c7cc994532
2 changed files with 28 additions and 4 deletions

View file

@ -128,7 +128,14 @@ class LibraryController {
res.json(libraryDownloadQueueDetails)
}
/**
* PATCH: /api/libraries/:id
*
* @param {import('express').Request} req
* @param {import('express').Response} res
*/
async update(req, res) {
/** @type {import('../objects/Library')} */
const library = req.library
// Validate that the custom provider exists if given any