1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-05 18:12:48 -05:00

[AC-2026] Add flexible collections opt-in endpoint (#3643)

Stored procedure to be added in AC-1682
This commit is contained in:
Thomas Rittson
2024-01-25 16:57:57 +10:00
committed by GitHub
parent 0deb13791a
commit 10f590b4e7
6 changed files with 103 additions and 2 deletions

View File

@ -169,4 +169,16 @@ public class OrganizationRepository : Repository<Organization, Guid>, IOrganizat
new { OrganizationId = organizationId },
commandType: CommandType.StoredProcedure);
}
public async Task EnableCollectionEnhancements(Guid organizationId)
{
using (var connection = new SqlConnection(ConnectionString))
{
await connection.ExecuteAsync(
"[dbo].[Organization_EnableCollectionEnhancements]",
new { OrganizationId = organizationId },
commandType: CommandType.StoredProcedure,
commandTimeout: 180);
}
}
}