mirror of https://github.com/requarks/wiki
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
407 B
14 lines
407 B
export async function task(): Promise<void> {
|
|
WIKI.logger.info('Purging stale rate limit counters...')
|
|
|
|
try {
|
|
const purged = await WIKI.models.rateLimits.purgeStale()
|
|
|
|
WIKI.logger.info(`Purged ${purged} stale rate limit counters: [ COMPLETED ]`)
|
|
} catch (err: any) {
|
|
WIKI.logger.error('Purging stale rate limit counters: [ FAILED ]')
|
|
WIKI.logger.error(err.message)
|
|
throw err
|
|
}
|
|
}
|