chore: code formatting

This commit is contained in:
github-actions[bot]
2022-08-28 19:23:49 +00:00
parent ff23b4ae98
commit 8fe68ad242
4 changed files with 9 additions and 9 deletions

View File

@@ -180,9 +180,9 @@ export default async function({sandbox = false} = {}) {
const custom = uapi(session)
if (custom) {
try {
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})
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) {
if (error.status === 401) {