From 82af17a1429c6dee5676c2dd04e602a59690bc40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?DELAGE=20Rapha=C3=ABl?= <36408929+delager@users.noreply.github.com> Date: Wed, 19 Apr 2023 10:54:20 +0200 Subject: [PATCH] #1937 Azure dependency fix for AWS (#2031) --- 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)