summaryrefslogtreecommitdiffstats
path: root/sources/schedule.c
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2020-05-12 12:47:02 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-06-02 12:32:36 +0200
commit894d8332f44f64f21d43f5c8e6ae2d2207351ec3 (patch)
tree10ebe645f82c952ee95c62b351a81e4569369229 /sources/schedule.c
parent63c4ea5e12639c9a8118b9d8dafe68abd05dee27 (diff)
#942 add command type to POST /schedule/create
Pass idcomando as task_id.
Diffstat (limited to 'sources/schedule.c')
-rw-r--r--sources/schedule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/schedule.c b/sources/schedule.c
index d7eb336..fd0e302 100644
--- a/sources/schedule.c
+++ b/sources/schedule.c
@@ -407,7 +407,7 @@ static void og_agent_timer_cb(struct ev_loop *loop, ev_timer *timer, int events)
struct og_schedule *current;
current = container_of(timer, struct og_schedule, timer);
- og_dbi_schedule_task(current->task_id, current->schedule_id);
+ og_schedule_run(current->task_id, current->schedule_id, current->type);
ev_timer_stop(loop, timer);
list_del(&current->list);