import { Worker } from "./Worker" ; import { TYPES } from "../utils/constants" ; import { inject , injectable } from "inversify" ; import { ShowMyChanges } from "../commands/showmychanges" ; @ injectable ( ) export class MyChangesWorker extends Worker { constructor ( @ inject ( TYPES . ShowMyChangesCommand ) private readonly showMyChangesCommand ) { super ( ) ; } mainFunction ( ) { return this . showMyChangesCommand . exec ( [ true ] ) ; } getDelayInSeconds ( ) { return 120 ; } getInitialDelayInSeconds ( ) { return 15 ; } }