fix(core): update

This commit is contained in:
Philipp Kunz 2020-09-07 12:13:27 +00:00
parent 110b2c00cf
commit 996685e7fb
2 changed files with 3 additions and 4 deletions

View File

@ -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() {

View File

@ -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 };