using System; using System.Threading.Tasks; using Microsoft.Extensions.Logging; using Wabbajack.BuildServer; using Wabbajack.Server.DataLayer; namespace Wabbajack.Server.Services; public class MirrorQueueService : AbstractService { private DiscordWebHook _discord; private readonly SqlService _sql; public MirrorQueueService(ILogger logger, AppSettings settings, QuickSync quickSync, DiscordWebHook discordWebHook, SqlService sqlService) : base(logger, settings, quickSync, TimeSpan.FromMinutes(5)) { _discord = discordWebHook; _sql = sqlService; } public override async Task Execute() { await _sql.QueueMirroredFiles(); return 1; } }