Skip to content

Commit

Permalink
Made Iconfiguration read only property
Browse files Browse the repository at this point in the history
  • Loading branch information
mudiagaobrikisil authored and johnml1135 committed Nov 4, 2024
1 parent 37e5a45 commit 8c79154
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ ILogger<TranslationEnginesController> logger
private readonly IOptionsMonitor<ApiOptions> _apiOptions = apiOptions;
private readonly IUrlService _urlService = urlService;
private readonly ILogger<TranslationEnginesController> _logger = logger;
private readonly IConfiguration _configuration = configuration;

/// <summary>
/// Get all translation engines
Expand Down Expand Up @@ -1047,7 +1048,7 @@ public async Task<ActionResult<TranslationBuildDto>> StartBuildAsync(
CancellationToken cancellationToken
)
{
string deploymentVersion = configuration.GetValue<string>("deploymentVersion") ?? "Unknown";
string deploymentVersion = _configuration.GetValue<string>("deploymentVersion") ?? "Unknown";

Engine engine = await _engineService.GetAsync(id, cancellationToken);
await AuthorizeAsync(engine);
Expand Down

0 comments on commit 8c79154

Please sign in to comment.