1
0
mirror of https://github.com/bitwarden/server synced 2026-02-22 20:33:26 +00:00

Update existing reads to use semaphore

This commit is contained in:
Thomas Rittson
2025-12-31 12:57:30 +10:00
parent a91f0967f4
commit 31eebe2285
2 changed files with 5 additions and 23 deletions

View File

@@ -434,16 +434,11 @@ public class CollectionRepository : Repository<Collection, Guid>, ICollectionRep
{
const string sql = @"
SELECT
ou.Id AS OrganizationUserId
OrganizationUserId
FROM
OrganizationUser ou
INNER JOIN
CollectionUser cu ON cu.OrganizationUserId = ou.Id
INNER JOIN
Collection c ON c.Id = cu.CollectionId
[DefaultCollectionSemaphore] dcs
WHERE
ou.OrganizationId = @OrganizationId
AND c.Type = @CollectionType;
OrganizationId = @OrganizationId
";
var organizationUserIds = await connection.QueryAsync<Guid>(