mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
11 lines
385 B
TypeScript
11 lines
385 B
TypeScript
import { TaskContract } from '@ioc:StouderIO/Scheduler'
|
|
import CDragonService from 'App/Services/CDragonService'
|
|
|
|
export default class UpdateCDragonCache implements TaskContract {
|
|
public readonly name: string = 'UpdateCDragonCache'
|
|
public readonly cron: string = '*/30 * * * *' // every 30 minutes
|
|
|
|
public async run(): Promise<void> {
|
|
await CDragonService.getContext()
|
|
}
|
|
}
|