Fix:Handle enabling/disabling library watchers #2775

This commit is contained in:
advplyr committed 2024-03-31 14:57:55 -05:00
1 parent a9c9c447f1
commit c7cc994532
2 files changed
+28 -4

No files matched your search

+7
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