fixed bug with reset settings tasks & update tasktype id DB
This commit is contained in:
parent
59b097b10b
commit
38c8ac1199
2 changed files with 8 additions and 4 deletions
|
@ -224,11 +224,11 @@ namespace WebsitePanel.EnterpriseServer
|
|||
}
|
||||
|
||||
// update last finish time
|
||||
ScheduleInfo scheduleInfo = SchedulerController.GetSchedule(TopTask.ItemId);
|
||||
if (scheduleInfo != null)
|
||||
SchedulerJob schedule = SchedulerController.GetScheduleComplete(TopTask.ItemId);
|
||||
if (schedule != null)
|
||||
{
|
||||
scheduleInfo.LastFinish = DateTime.Now;
|
||||
SchedulerController.UpdateSchedule(scheduleInfo);
|
||||
schedule.ScheduleInfo.LastFinish = DateTime.Now;
|
||||
SchedulerController.UpdateSchedule(schedule.ScheduleInfo);
|
||||
}
|
||||
|
||||
// remove task from the stack
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue