fix(core): update

This commit is contained in:
2019-06-17 16:54:39 +02:00
parent 9935396f2d
commit f221e9c0fa
11 changed files with 433 additions and 397 deletions

View File

@@ -6,12 +6,12 @@ export class CronManager {
public cronjobs: plugins.cron.CronJob[] = [];
public addCronjob(cronIdentifierArg: string, cronFunctionArg: plugins.cron.CronCommand) {
const newCronJob = new plugins.cron.CronJob(cronIdentifierArg,cronFunctionArg);
const newCronJob = new plugins.cron.CronJob(cronIdentifierArg, cronFunctionArg);
if (this.status === 'started') {
newCronJob.start();
}
this.cronjobs.push(newCronJob);
};
}
/**
* starts the cronjob