summaryrefslogtreecommitdiffstats
path: root/admin/Sources/Services/ogAdmServer/sources/ogAdmServer.c
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2020-05-06 18:46:29 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-06-02 12:32:36 +0200
commit6b5800739000ff786018d6e8d89aca95406486f1 (patch)
tree297c1ef1b8127eff7bdabb223b5513c53a573fb5 /admin/Sources/Services/ogAdmServer/sources/ogAdmServer.c
parent4ddd66071883ebb175d5310c3ff206319073ecad (diff)
#942 add enum og_schedule_type
Diffstat (limited to 'admin/Sources/Services/ogAdmServer/sources/ogAdmServer.c')
-rw-r--r--admin/Sources/Services/ogAdmServer/sources/ogAdmServer.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/admin/Sources/Services/ogAdmServer/sources/ogAdmServer.c b/admin/Sources/Services/ogAdmServer/sources/ogAdmServer.c
index dbc48ae8..8b7b4880 100644
--- a/admin/Sources/Services/ogAdmServer/sources/ogAdmServer.c
+++ b/admin/Sources/Services/ogAdmServer/sources/ogAdmServer.c
@@ -3754,7 +3754,8 @@ static int og_dbi_schedule_get(void)
time.am_pm = dbi_result_get_uint(result, "ampm");
time.minutes = dbi_result_get_uint(result, "minutos");
- og_schedule_create(schedule_id, task_id, &time);
+ og_schedule_create(schedule_id, task_id, OG_SCHEDULE_TASK,
+ &time);
}
dbi_result_free(result);
@@ -3971,7 +3972,8 @@ static int og_task_schedule_create(struct og_msg_params *params)
og_dbi_close(dbi);
return -1;
}
- og_schedule_create(schedule_id, atoi(params->task_id), &params->time);
+ og_schedule_create(schedule_id, atoi(params->task_id), OG_SCHEDULE_TASK,
+ &params->time);
og_schedule_refresh(og_loop);
og_dbi_close(dbi);