Skip to content

Commit

Permalink
#1937 Azure dependency fix for AWS (#2031)
Browse files Browse the repository at this point in the history
  • Loading branch information
delager authored and kbeaugrand committed Jun 18, 2023
1 parent 67e318e commit 9c1d0da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AzureIoTHub.Portal.Server/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -452,8 +452,6 @@ public async void Configure(IApplicationBuilder app, IWebHostEnvironment env)
default:
break;
}

await EnsureDatabaseCreatedAndUpToDate(app)!;
}

private static async Task ConfigureAzureAsync(IApplicationBuilder app)
Expand All @@ -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)
Expand Down

0 comments on commit 9c1d0da

Please sign in to comment.