diff --git a/src/Serval/src/Serval.Translation/Controllers/TranslationEnginesController.cs b/src/Serval/src/Serval.Translation/Controllers/TranslationEnginesController.cs index f8e7755a..aeb87b96 100644 --- a/src/Serval/src/Serval.Translation/Controllers/TranslationEnginesController.cs +++ b/src/Serval/src/Serval.Translation/Controllers/TranslationEnginesController.cs @@ -23,6 +23,7 @@ ILogger logger private readonly IOptionsMonitor _apiOptions = apiOptions; private readonly IUrlService _urlService = urlService; private readonly ILogger _logger = logger; + private readonly IConfiguration _configuration = configuration; /// /// Get all translation engines @@ -1047,7 +1048,7 @@ public async Task> StartBuildAsync( CancellationToken cancellationToken ) { - string deploymentVersion = configuration.GetValue("deploymentVersion") ?? "Unknown"; + string deploymentVersion = _configuration.GetValue("deploymentVersion") ?? "Unknown"; Engine engine = await _engineService.GetAsync(id, cancellationToken); await AuthorizeAsync(engine);