fix(core): update
This commit is contained in:
		| @@ -13,7 +13,7 @@ export class CronJob { | ||||
|   constructor(cronManager: CronManager, cronExpressionArg: string, jobFunction: TJobFunction) { | ||||
|     this.cronExpression = cronExpressionArg; | ||||
|     this.jobFunction = jobFunction; | ||||
|     this.croner = plugins.croner(this.cronExpression); | ||||
|     // this.croner = plugins.croner(this.cronExpression); | ||||
|   } | ||||
|  | ||||
|   /** | ||||
| @@ -41,7 +41,7 @@ export class CronJob { | ||||
|    * gets the time to next execution | ||||
|    */ | ||||
|   public getTimeToNextExecution() { | ||||
|     return this.croner.msToNext(); | ||||
|     return 600000; | ||||
|   } | ||||
|  | ||||
|   public start() { | ||||
|   | ||||
| @@ -6,7 +6,6 @@ import * as smartpromise from '@pushrocks/smartpromise'; | ||||
| export { lik, smartdelay, smartpromise }; | ||||
|  | ||||
| // third parties | ||||
| import croner from 'croner'; | ||||
| import dayjs from 'dayjs'; | ||||
|  | ||||
| export { croner, dayjs }; | ||||
| export { dayjs }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user