Skip to content

Commit

Permalink
Fix Transcode Cleanup Schedule
Browse files Browse the repository at this point in the history
Sets the default time to midnight, and confirms to the same task
scheduling commands that other tasks use.
  • Loading branch information
anthonylavado committed Oct 5, 2020
1 parent 2a575dd commit e77040a
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,13 @@ public DeleteTranscodeFileTask(
/// Creates the triggers that define when the task will run.
/// </summary>
/// <returns>IEnumerable{BaseTaskTrigger}.</returns>
public IEnumerable<TaskTriggerInfo> GetDefaultTriggers() => new List<TaskTriggerInfo>();
public IEnumerable<TaskTriggerInfo> GetDefaultTriggers()
{
return new[]
{
new TaskTriggerInfo { Type = TaskTriggerInfo.TriggerDaily, TimeOfDayTicks = TimeSpan.FromHours(0).Ticks}
};
}

/// <summary>
/// Returns the task to be executed.
Expand Down

0 comments on commit e77040a

Please sign in to comment.