chore: code formatting
This commit is contained in:
1 parent
ff23b4ae98
commit
8fe68ad242
4 files changed
+9
-9
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user