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:
@ -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
|
Reference in New Issue
Block a user