fix(core): update

This commit is contained in:
Philipp Kunz 2020-09-02 13:46:26 +00:00
parent 2cf32ac723
commit 6f811b4ab5
2 changed files with 3 additions and 2 deletions

View File

@ -200,6 +200,7 @@ export class Task {
/**
* trigger task unbuffered.
* will actually run the task, not considering any buffered limits.
*/
public triggerUnBuffered(x?): Promise<any> {
return Task.runTask(this, { x: x });
@ -207,6 +208,7 @@ export class Task {
/**
* trigger task buffered.
* will simply call task.trigger(), which respects buffering by default
*/
public triggerBuffered(x?): Promise<any> {
return this.bufferRunner.trigger(x);

View File

@ -44,8 +44,7 @@ export class TaskManager {
*/
public addAndScheduleTask(taskArg: Task, cronStringArg: string) {
this.addTask(taskArg);
const taskName = taskArg.name;
this.scheduleTaskByName(taskName, cronStringArg);
this.scheduleTaskByName(taskArg.name, cronStringArg);
}
/**