chore: linter
This commit is contained in:
@@ -183,7 +183,8 @@ export default async function({sandbox = false} = {}) {
|
|||||||
const {data: {resources}} = await custom.rest.rateLimit.get()
|
const {data: {resources}} = await custom.rest.rateLimit.get()
|
||||||
if (resources)
|
if (resources)
|
||||||
return res.status(200).json({rest: resources.core, graphql: resources.graphql, search: resources.search, login: custom.login})
|
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) {
|
if (error.status === 401) {
|
||||||
console.debug(`metrics/app/oauth > session ${session.substring(0, 6)} is not valid anymore, removing it from cache`)
|
console.debug(`metrics/app/oauth > session ${session.substring(0, 6)} is not valid anymore, removing it from cache`)
|
||||||
authenticated.delete(session)
|
authenticated.delete(session)
|
||||||
|
|||||||
Reference in New Issue
Block a user