Compare commits

..

2 Commits

Author SHA1 Message Date
dd783b455f 3.0.32 2020-09-07 12:13:28 +00:00
996685e7fb fix(core): update 2020-09-07 12:13:27 +00:00
4 changed files with 5 additions and 6 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smarttime",
"version": "3.0.31",
"version": "3.0.32",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,7 +1,7 @@
{
"name": "@pushrocks/smarttime",
"private": false,
"version": "3.0.31",
"version": "3.0.32",
"description": "handle time in smart ways",
"main": "dist_ts/index.js",
"typings": "dist_ts/index.d.ts",

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