From 894d8332f44f64f21d43f5c8e6ae2d2207351ec3 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Tue, 12 May 2020 12:47:02 +0200 Subject: #942 add command type to POST /schedule/create Pass idcomando as task_id. --- sources/schedule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sources/schedule.c') 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(¤t->list); -- cgit v1.2.3-18-g5258