1
0
Fork 0
mirror of synced 2024-07-11 01:06:04 +12:00

Remove 429 in dev

This commit is contained in:
Adria Navarro 2023-12-20 13:09:02 +01:00
parent 192d980e53
commit 5240b04a3a
2 changed files with 1 additions and 7 deletions

View file

@ -12,10 +12,6 @@ if (!process.argv[2]) {
process.exit(-1)
}
async function sleep(ms) {
return new Promise(r => setTimeout(() => r(), ms))
}
const start = Date.now()
async function run() {
@ -75,7 +71,6 @@ async function run() {
(Date.now() - start) / 1000
}s)`
)
await sleep(50)
}
const gradesTable = await createTable(apiKey, app._id, {
@ -123,7 +118,6 @@ async function run() {
(Date.now() - start) / 1000
}s)`
)
await sleep(20)
}
}
}

View file

@ -77,7 +77,7 @@ const publicRouter = new Router({
prefix: PREFIX,
})
if (limiter) {
if (limiter && !env.isDev()) {
publicRouter.use(limiter)
}