Skip to content

Commit dd11045

Browse files
committed
fix AddTableStorageService
Related to: #300
1 parent 8f33257 commit dd11045

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AzureOpenAIProxy.ApiApp/Extensions/ServiceCollectionExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public static IServiceCollection AddTableStorageService(this IServiceCollection
148148
var configuration = sp.GetService<IConfiguration>()
149149
?? throw new InvalidOperationException($"{nameof(IConfiguration)} service is not registerd.");
150150

151-
var settings = configuration.GetSection(StorageAccountSettings.Name).Get<StorageAccountSettings>()
151+
var settings = configuration.GetSection(AzureSettings.Name).GetSection(StorageAccountSettings.Name).Get<StorageAccountSettings>()
152152
?? throw new InvalidOperationException($"{nameof(StorageAccountSettings)} could not be retrieved from the configuration.");
153153

154154
if (string.IsNullOrWhiteSpace(settings.KeyVaultSecretName) == true)

0 commit comments

Comments
 (0)