From a226f9de1217ee94bfabad30c16609c7784ca5a8 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sun, 5 Feb 2023 22:01:12 -0800 Subject: [PATCH] remove folders, unused vars --- src/widgets/photoprism/component.jsx | 2 +- src/widgets/photoprism/proxy.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/widgets/photoprism/component.jsx b/src/widgets/photoprism/component.jsx index 1a679cd9b..ee489d353 100644 --- a/src/widgets/photoprism/component.jsx +++ b/src/widgets/photoprism/component.jsx @@ -28,7 +28,7 @@ export default function Component({ service }) { return ( - + diff --git a/src/widgets/photoprism/proxy.js b/src/widgets/photoprism/proxy.js index af1330447..eba398dc7 100644 --- a/src/widgets/photoprism/proxy.js +++ b/src/widgets/photoprism/proxy.js @@ -6,7 +6,7 @@ import createLogger from "utils/logger"; const logger = createLogger("photoprismProxyHandler"); export default async function photoprismProxyHandler(req, res) { - const { group, service, endpoint } = req.query; + const { group, service } = req.query; if (!group || !service) { logger.debug("Invalid or missing service '%s' or group '%s'", service, group); @@ -20,7 +20,7 @@ export default async function photoprismProxyHandler(req, res) { return res.status(400).json({ error: "Invalid proxy service type" }); } - const url = new URL(formatApiCall("{url}/api/v1/session", { endpoint, ...widget })); + const url = new URL(formatApiCall("{url}/api/v1/session", { ...widget })); const params = { method: "POST", headers: { "Content-Type": "application/json" }, @@ -37,7 +37,7 @@ export default async function photoprismProxyHandler(req, res) { let [status, contentType, data] = await httpProxy(url, params); if (status !== 200) { - logger.error("HTTP %d getting data from PhotoPrism. Data: %s", status, data); + logger.error("HTTP %d getting data from PhotoPrism. Data: %s", status, data); return res.status(status).json({error: {message: `HTTP Error ${status}`, url, data}}); }