fix(core): update
This commit is contained in:
parent
5f5957b0c0
commit
c234cb4caa
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@pushrocks/smarttime',
|
||||
version: '4.0.0',
|
||||
version: '4.0.1',
|
||||
description: 'handle time in smart ways'
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
import * as plugins from './smarttime.plugins.js';
|
||||
import { CronJob } from './smarttime.classes.cronjob.js';
|
||||
import { CronJob, TJobFunction } from './smarttime.classes.cronjob.js';
|
||||
import { getMilliSecondsAsHumanReadableString } from './smarttime.units.js';
|
||||
|
||||
export class CronManager {
|
||||
@ -10,7 +10,7 @@ export class CronManager {
|
||||
|
||||
constructor() {}
|
||||
|
||||
public addCronjob(cronIdentifierArg: string, cronFunctionArg: () => Promise<void>) {
|
||||
public addCronjob(cronIdentifierArg: string, cronFunctionArg: TJobFunction) {
|
||||
const newCronJob = new CronJob(this, cronIdentifierArg, cronFunctionArg);
|
||||
this.cronjobs.add(newCronJob);
|
||||
if (this.status === 'started') {
|
||||
|
Loading…
Reference in New Issue
Block a user