chore: code formatting
This commit is contained in:
@@ -140,9 +140,9 @@ function quit(reason) {
|
|||||||
"output.action": _action,
|
"output.action": _action,
|
||||||
"output.condition": _output_condition,
|
"output.condition": _output_condition,
|
||||||
delay,
|
delay,
|
||||||
"quota.required.rest":_quota_required_rest,
|
"quota.required.rest": _quota_required_rest,
|
||||||
"quota.required.graphql":_quota_required_graphql,
|
"quota.required.graphql": _quota_required_graphql,
|
||||||
"quota.required.search":_quota_required_search,
|
"quota.required.search": _quota_required_search,
|
||||||
"notice.release": _notice_releases,
|
"notice.release": _notice_releases,
|
||||||
...config
|
...config
|
||||||
} = metadata.plugins.core.inputs.action({core, preset})
|
} = metadata.plugins.core.inputs.action({core, preset})
|
||||||
@@ -192,7 +192,7 @@ function quit(reason) {
|
|||||||
Object.assign(resources, data.resources)
|
Object.assign(resources, data.resources)
|
||||||
for (const type of ["core", "graphql", "search"]) {
|
for (const type of ["core", "graphql", "search"]) {
|
||||||
const name = {core: "REST", graphql: "GraphQL", search: "Search"}[type]
|
const name = {core: "REST", graphql: "GraphQL", search: "Search"}[type]
|
||||||
const quota = {core:_quota_required_rest, graphql:_quota_required_graphql, search:_quota_required_search}[type] ?? 1
|
const quota = {core: _quota_required_rest, graphql: _quota_required_graphql, search: _quota_required_search}[type] ?? 1
|
||||||
info(`API requests (${name})`, resources[type] ? `${resources[type].remaining}/${resources[type].limit}${quota ? ` (${quota}+ required)` : ""}` : "(unknown)")
|
info(`API requests (${name})`, resources[type] ? `${resources[type].remaining}/${resources[type].limit}${quota ? ` (${quota}+ required)` : ""}` : "(unknown)")
|
||||||
if ((resources[type]) && (resources[type].remaining < quota))
|
if ((resources[type]) && (resources[type].remaining < quota))
|
||||||
ratelimit = true
|
ratelimit = true
|
||||||
|
|||||||
Reference in New Issue
Block a user