diff --git a/colaflow-api/src/ColaFlow.API/Extensions/ModuleExtensions.cs b/colaflow-api/src/ColaFlow.API/Extensions/ModuleExtensions.cs index 29f8b79..7371474 100644 --- a/colaflow-api/src/ColaFlow.API/Extensions/ModuleExtensions.cs +++ b/colaflow-api/src/ColaFlow.API/Extensions/ModuleExtensions.cs @@ -46,6 +46,10 @@ public static class ModuleExtensions }); } + // Register IApplicationDbContext interface (required by command handlers) + services.AddScoped( + sp => sp.GetRequiredService()); + // Register HTTP Context Accessor (for tenant context) services.AddHttpContextAccessor();