From 468113b806a459305a3350c355cca095d446ab0f Mon Sep 17 00:00:00 2001 From: bhrdn Date: Tue, 25 Jan 2022 17:50:42 +0700 Subject: [PATCH] fix: issues #78 --- lib/scheduler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/scheduler.js b/lib/scheduler.js index 7a72672..f56b06d 100644 --- a/lib/scheduler.js +++ b/lib/scheduler.js @@ -211,7 +211,7 @@ class Scheduler { } _parseScheduleObject(funcName, rawEvent) { - return new EventData(funcName, this._convertExpressionToCron(rawEvent.rate), this._getStageVariables(), rawEvent); + return new EventData(funcName, this._convertExpressionToCron(rawEvent.rate.pop()), this._getStageVariables(), rawEvent); } _parseScheduleExpression(funcName, expression) {