From 55bdb3a5a0e925601b4723bd640b29953279631d Mon Sep 17 00:00:00 2001 From: delager Date: Tue, 18 Apr 2023 16:41:07 +0200 Subject: [PATCH] #1937 Azure dependency fix for AWS --- src/AzureIoTHub.Portal.Server/Startup.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AzureIoTHub.Portal.Server/Startup.cs b/src/AzureIoTHub.Portal.Server/Startup.cs index 9df00e358..7276e7c91 100644 --- a/src/AzureIoTHub.Portal.Server/Startup.cs +++ b/src/AzureIoTHub.Portal.Server/Startup.cs @@ -452,8 +452,6 @@ public async void Configure(IApplicationBuilder app, IWebHostEnvironment env) default: break; } - - await EnsureDatabaseCreatedAndUpToDate(app)!; } private static async Task ConfigureAzureAsync(IApplicationBuilder app) @@ -462,6 +460,8 @@ private static async Task ConfigureAzureAsync(IApplicationBuilder app) await deviceModelImageManager?.InitializeDefaultImageBlob()!; await deviceModelImageManager?.SyncImagesCacheControl()!; + + await EnsureDatabaseCreatedAndUpToDate(app)!; } private static void UseApiExceptionMiddleware(IApplicationBuilder app)