Rename ApplicationCheckUpdate to ApplicationUpdateCheck

This commit is contained in:
Bogdan
2024-10-19 06:06:03 +03:00
parent 2afafd79e4
commit 9037cde439
4 changed files with 5 additions and 5 deletions

View File

@@ -72,7 +72,7 @@ namespace NzbDrone.Core.Jobs
new ScheduledTask
{
Interval = 6 * 60,
TypeName = typeof(ApplicationCheckUpdateCommand).FullName
TypeName = typeof(ApplicationUpdateCheckCommand).FullName
},
new ScheduledTask

View File

@@ -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;

View File

@@ -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)
{

View File

@@ -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);
}