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 committed Nov 1, 2024
1 parent 80682ba commit 7dc3e3a
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 @@ -1036,7 +1037,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 7dc3e3a

Please sign in to comment.