From 63cebf378487d16369778f74cdd2d60dfae9f29a Mon Sep 17 00:00:00 2001 From: FoxxMD Date: Mon, 30 Jun 2025 13:43:18 +0000 Subject: [PATCH] fix(plex): Ignore library response validation As temporary fix for #314 --- patches/@lukehagar+plexjs+0.39.0.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 patches/@lukehagar+plexjs+0.39.0.patch diff --git a/patches/@lukehagar+plexjs+0.39.0.patch b/patches/@lukehagar+plexjs+0.39.0.patch new file mode 100644 index 00000000..0d8852d4 --- /dev/null +++ b/patches/@lukehagar+plexjs+0.39.0.patch @@ -0,0 +1,18 @@ +diff --git a/node_modules/@lukehagar/plexjs/funcs/libraryGetAllLibraries.js b/node_modules/@lukehagar/plexjs/funcs/libraryGetAllLibraries.js +index f586c1f..221851d 100644 +--- a/node_modules/@lukehagar/plexjs/funcs/libraryGetAllLibraries.js ++++ b/node_modules/@lukehagar/plexjs/funcs/libraryGetAllLibraries.js +@@ -102,9 +102,9 @@ async function $do(client, options) { + const [result] = await M.match(M.json(200, operations.GetAllLibrariesResponse$inboundSchema, { + key: "object", + }), M.jsonErr(400, errors.GetAllLibrariesBadRequest$inboundSchema), M.jsonErr(401, errors.GetAllLibrariesUnauthorized$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields }); +- if (!result.ok) { +- return [result, { status: "complete", request: req, response }]; +- } ++ // if (!result.ok) { ++ // return [result, { status: "complete", request: req, response }]; ++ // } + return [result, { status: "complete", request: req, response }]; + } + //# sourceMappingURL=libraryGetAllLibraries.js.map +\ No newline at end of file -- 2.51.2