chore: linter

This commit is contained in:
lowlighter
2022-08-28 14:18:10 -04:00
parent 7976e3bfc5
commit ff23b4ae98

View File

@@ -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)