From 996685e7fb63511fd321b9d805df1d111b7e14a1 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Mon, 7 Sep 2020 12:13:27 +0000 Subject: [PATCH] fix(core): update --- ts/smarttime.classes.cronjob.ts | 4 ++-- ts/smarttime.plugins.ts | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ts/smarttime.classes.cronjob.ts b/ts/smarttime.classes.cronjob.ts index 333c0b3..d200ffe 100644 --- a/ts/smarttime.classes.cronjob.ts +++ b/ts/smarttime.classes.cronjob.ts @@ -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() { diff --git a/ts/smarttime.plugins.ts b/ts/smarttime.plugins.ts index e67ab30..aead7db 100644 --- a/ts/smarttime.plugins.ts +++ b/ts/smarttime.plugins.ts @@ -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 };