From ff23b4ae98324872448edd69d53013c9b167acbb Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Sun, 28 Aug 2022 14:18:10 -0400 Subject: [PATCH] chore: linter --- source/app/web/instance.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/app/web/instance.mjs b/source/app/web/instance.mjs index eb448f31..5d715895 100644 --- a/source/app/web/instance.mjs +++ b/source/app/web/instance.mjs @@ -183,7 +183,8 @@ export default async function({sandbox = false} = {}) { const {data: {resources}} = await custom.rest.rateLimit.get() if (resources) return res.status(200).json({rest: resources.core, graphql: resources.graphql, search: resources.search, login: custom.login}) - } catch (error) { + } + catch (error) { if (error.status === 401) { console.debug(`metrics/app/oauth > session ${session.substring(0, 6)} is not valid anymore, removing it from cache`) authenticated.delete(session)