chore: code formatting

This commit is contained in:
github-actions[bot]
2022-01-28 01:53:23 +00:00
parent 3945af02d1
commit 8890aea598
5 changed files with 38 additions and 32 deletions

View File

@@ -18,7 +18,7 @@ export default async function({sandbox = false} = {}) {
//Sandbox mode
if (sandbox) {
console.debug("metrics/app > sandbox mode is specified, enabling advanced features")
Object.assign(conf.settings, {sandbox:true, optimize: true, cached:0, "plugins.default":true, extras:{default:true}})
Object.assign(conf.settings, {sandbox:true, optimize:true, cached:0, "plugins.default":true, extras:{default:true}})
}
const {token, maxusers = 0, restricted = [], debug = false, cached = 30 * 60 * 1000, port = 3000, ratelimiter = null, plugins = null} = conf.settings
const mock = sandbox || conf.settings.mocked
@@ -101,7 +101,7 @@ export default async function({sandbox = false} = {}) {
const {limit} = await graphql("{ limit:rateLimit {limit remaining reset:resetAt used} }")
Object.assign(requests, {
rest:(await rest.rateLimit.get()).data.rate,
graphql:{...limit, reset:new Date(limit.reset).getTime()}
graphql:{...limit, reset:new Date(limit.reset).getTime()},
})
}
catch {