1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-05 05:00:19 -05:00

Register OrganizationUpdateKeysCommand for dependency injection

This commit is contained in:
Rui Tome 2025-04-03 15:55:39 +01:00
parent 67cc9ea875
commit e5a29d40eb
No known key found for this signature in database
GPG Key ID: 526239D96A8EC066

View File

@ -55,6 +55,7 @@ public static class OrganizationServiceCollectionExtensions
services.AddOrganizationDomainCommandsQueries(); services.AddOrganizationDomainCommandsQueries();
services.AddOrganizationSignUpCommands(); services.AddOrganizationSignUpCommands();
services.AddOrganizationDeleteCommands(); services.AddOrganizationDeleteCommands();
services.AddOrganizationUpdateCommands();
services.AddOrganizationEnableCommands(); services.AddOrganizationEnableCommands();
services.AddOrganizationDisableCommands(); services.AddOrganizationDisableCommands();
services.AddOrganizationAuthCommands(); services.AddOrganizationAuthCommands();
@ -72,6 +73,11 @@ public static class OrganizationServiceCollectionExtensions
services.AddScoped<IOrganizationInitiateDeleteCommand, OrganizationInitiateDeleteCommand>(); services.AddScoped<IOrganizationInitiateDeleteCommand, OrganizationInitiateDeleteCommand>();
} }
private static void AddOrganizationUpdateCommands(this IServiceCollection services)
{
services.AddScoped<IOrganizationUpdateKeysCommand, OrganizationUpdateKeysCommand>();
}
private static void AddOrganizationEnableCommands(this IServiceCollection services) => private static void AddOrganizationEnableCommands(this IServiceCollection services) =>
services.AddScoped<IOrganizationEnableCommand, OrganizationEnableCommand>(); services.AddScoped<IOrganizationEnableCommand, OrganizationEnableCommand>();