1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-27 22:26:13 -05:00

Add scoped services for collection commands

* Register ICreateCollectionCommand and IUpdateCollectionCommand in the service collection for handling collection creation and updates.
This commit is contained in:
Rui Tome 2025-06-12 14:47:39 +01:00
parent 2e2cf2e0df
commit c7f3db3047
No known key found for this signature in database
GPG Key ID: 526239D96A8EC066

View File

@ -143,6 +143,8 @@ public static class OrganizationServiceCollectionExtensions
public static void AddOrganizationCollectionCommands(this IServiceCollection services)
{
services.AddScoped<ICreateCollectionCommand, CreateCollectionCommand>();
services.AddScoped<IUpdateCollectionCommand, UpdateCollectionCommand>();
services.AddScoped<IDeleteCollectionCommand, DeleteCollectionCommand>();
services.AddScoped<IBulkAddCollectionAccessCommand, BulkAddCollectionAccessCommand>();
}