Skip to content

Commit

Permalink
VCST-1917: rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Ljutyj committed Oct 24, 2024
1 parent adbbab7 commit 971aa8f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace VirtoCommerce.Platform.Web.Controllers.Api
[Authorize]
public class ModulesController : Controller
{
private const string ManagementIsDisabledMessage = "Module management is disabled.";
private const string _managementIsDisabledMessage = "Module management is disabled.";

private readonly IExternalModuleCatalog _externalModuleCatalog;
private readonly IModuleInstaller _moduleInstaller;
Expand Down Expand Up @@ -159,7 +159,7 @@ public async Task<ActionResult<ModuleDescriptor>> UploadModuleArchive()

if (!_localStorageModuleCatalogOptions.RefreshProbingFolderOnStart)
{
return BadRequest(ManagementIsDisabledMessage);
return BadRequest(_managementIsDisabledMessage);
}

if (!MultipartRequestHelper.IsMultipartContentType(Request.ContentType))
Expand Down Expand Up @@ -444,7 +444,7 @@ public void ModuleBackgroundJob(ModuleBackgroundJobOptions options, ModulePushNo
else
{
notification.Finished = DateTime.UtcNow;
notification.Description = ManagementIsDisabledMessage;
notification.Description = _managementIsDisabledMessage;
notification.ProgressLog.Add(new ProgressMessage
{
Level = ProgressMessageLevel.Error,
Expand Down

0 comments on commit 971aa8f

Please sign in to comment.