Default to empty[] args

This commit is contained in:
Bryan Ashby 2016-07-04 12:57:49 -06:00
parent 7ab61ac641
commit 396e7cc747
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class ScheduledEvent {
this.schedule = this.parseScheduleString(events[name].schedule); this.schedule = this.parseScheduleString(events[name].schedule);
this.action = this.parseActionSpec(events[name].action); this.action = this.parseActionSpec(events[name].action);
if(this.action) { if(this.action) {
this.action.args = events[name].args; this.action.args = events[name].args || [];
} }
} }