1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 07:36:14 -05:00

[PM-17449] Add stored proc, EF query, and an integration test for them (#5413)

This commit is contained in:
Jimmy Vo
2025-02-20 15:08:06 -05:00
committed by GitHub
parent 93e5f7d0fe
commit 2f4d5283d3
6 changed files with 142 additions and 0 deletions

View File

@ -0,0 +1,15 @@
CREATE OR ALTER PROCEDURE [dbo].[OrganizationDomain_ReadByOrganizationIds]
@OrganizationIds AS [dbo].[GuidIdArray] READONLY
AS
BEGIN
SET NOCOUNT ON
SELECT
d.OrganizationId,
d.DomainName
FROM dbo.OrganizationDomainView AS d
WHERE d.OrganizationId IN (SELECT [Id] FROM @OrganizationIds)
AND d.VerifiedDate IS NOT NULL;
END