diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2020-05-06 18:46:29 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2020-06-02 12:32:36 +0200 |
commit | 63c4ea5e12639c9a8118b9d8dafe68abd05dee27 (patch) | |
tree | 15537ff916b97d0fe5fee763e5d553078c9b75bf /sources/ogAdmServer.c | |
parent | 8fa9ec647ae2ebe71839d7ce8ca1c2624610eb72 (diff) |
#942 add enum og_schedule_type
Diffstat (limited to 'sources/ogAdmServer.c')
-rw-r--r-- | sources/ogAdmServer.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sources/ogAdmServer.c b/sources/ogAdmServer.c index dbc48ae..8b7b488 100644 --- a/sources/ogAdmServer.c +++ b/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), ¶ms->time); + og_schedule_create(schedule_id, atoi(params->task_id), OG_SCHEDULE_TASK, + ¶ms->time); og_schedule_refresh(og_loop); og_dbi_close(dbi); |