mirror of
https://github.com/bitwarden/server.git
synced 2024-11-23 12:25:16 +01:00
cb73056c42
* [AC-1654] Added IOrganizationConnectionRepository.GetByIdOrganizationIdAsync and modified OrganizationConnectionsController to use it to get a connection matching both Id and OrganizationId * [AC-1654] Fixed unit tests
17 lines
300 B
Transact-SQL
17 lines
300 B
Transact-SQL
CREATE OR ALTER PROCEDURE [dbo].[OrganizationConnection_ReadByIdOrganizationId]
|
|
@Id UNIQUEIDENTIFIER,
|
|
@OrganizationId UNIQUEIDENTIFIER
|
|
AS
|
|
BEGIN
|
|
SET NOCOUNT ON
|
|
|
|
SELECT
|
|
*
|
|
FROM
|
|
[dbo].[OrganizationConnectionView]
|
|
WHERE
|
|
[Id] = @Id AND
|
|
[OrganizationId] = @OrganizationId
|
|
END
|
|
GO
|