1
0
mirror of https://github.com/bitwarden/server.git synced 2025-05-08 13:12:16 -05:00

Update comment

This commit is contained in:
Hinton 2025-05-01 14:59:09 +02:00
parent 01093e8bbd
commit b131bf29ab
No known key found for this signature in database
GPG Key ID: 5F7295599C5D965C

View File

@ -28,7 +28,7 @@ public class Program
ServiceCollectionExtension.ConfigureServices(services); ServiceCollectionExtension.ConfigureServices(services);
var serviceProvider = services.BuildServiceProvider(); var serviceProvider = services.BuildServiceProvider();
// TODO: Can we remove GenerateCommand and provide a RecipeFactory or something. Or wire up DI. // Get a scoped DB context
using var scope = serviceProvider.CreateScope(); using var scope = serviceProvider.CreateScope();
var scopedServices = scope.ServiceProvider; var scopedServices = scope.ServiceProvider;
var db = scopedServices.GetRequiredService<DatabaseContext>(); var db = scopedServices.GetRequiredService<DatabaseContext>();