1 import { GeoIP } from '@server/helpers/geo-ip'
2 import { SCHEDULER_INTERVALS_MS } from '../../initializers/constants'
3 import { AbstractScheduler } from './abstract-scheduler'
5 export class GeoIPUpdateScheduler extends AbstractScheduler {
7 private static instance: AbstractScheduler
9 protected schedulerIntervalMs = SCHEDULER_INTERVALS_MS.YOUTUBE_DL_UPDATE
11 private constructor () {
15 protected internalExecute () {
16 return GeoIP.Instance.updateDatabase()
19 static get Instance () {
20 return this.instance || (this.instance = new this())