mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-18 21:55:12 -04:00
Rename ApplicationCheckUpdate to ApplicationUpdateCheck
This commit is contained in:
@@ -72,7 +72,7 @@ namespace NzbDrone.Core.Jobs
|
||||
new ScheduledTask
|
||||
{
|
||||
Interval = 6 * 60,
|
||||
TypeName = typeof(ApplicationCheckUpdateCommand).FullName
|
||||
TypeName = typeof(ApplicationUpdateCheckCommand).FullName
|
||||
},
|
||||
|
||||
new ScheduledTask
|
||||
|
||||
@@ -2,7 +2,7 @@ using NzbDrone.Core.Messaging.Commands;
|
||||
|
||||
namespace NzbDrone.Core.Update.Commands
|
||||
{
|
||||
public class ApplicationCheckUpdateCommand : Command
|
||||
public class ApplicationUpdateCheckCommand : Command
|
||||
{
|
||||
public override bool SendUpdatesToClient => true;
|
||||
|
||||
@@ -20,7 +20,7 @@ using NzbDrone.Core.Update.Commands;
|
||||
|
||||
namespace NzbDrone.Core.Update
|
||||
{
|
||||
public class InstallUpdateService : IExecute<ApplicationCheckUpdateCommand>, IExecute<ApplicationUpdateCommand>, IHandle<ApplicationStartingEvent>
|
||||
public class InstallUpdateService : IExecute<ApplicationUpdateCommand>, IExecute<ApplicationUpdateCheckCommand>, IHandle<ApplicationStartingEvent>
|
||||
{
|
||||
private readonly ICheckUpdateService _checkUpdateService;
|
||||
private readonly Logger _logger;
|
||||
@@ -270,7 +270,7 @@ namespace NzbDrone.Core.Update
|
||||
return latestAvailable;
|
||||
}
|
||||
|
||||
public void Execute(ApplicationCheckUpdateCommand message)
|
||||
public void Execute(ApplicationUpdateCheckCommand message)
|
||||
{
|
||||
if (GetUpdatePackage(message.Trigger) != null)
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace NzbDrone.Integration.Test.ApiTests
|
||||
[Test]
|
||||
public void should_be_able_to_run_update_check()
|
||||
{
|
||||
var response = Commands.Post(new SimpleCommandResource { Name = "applicationcheckupdate" });
|
||||
var response = Commands.Post(new SimpleCommandResource { Name = "applicationupdatecheck" });
|
||||
|
||||
response.Id.Should().NotBe(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user