mirror of
https://github.com/bitwarden/server
synced 2025-12-16 16:23:31 +00:00
Merge branch 'arch/seeder-sdk' of github.com:bitwarden/server into arch/seeder-api
# Conflicts: # util/Seeder/Factories/UserSeeder.cs
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
CREATE OR ALTER PROCEDURE [dbo].[OrganizationIntegration_ReadByTeamsConfigurationTenantIdTeamId]
|
||||
@TenantId NVARCHAR(200),
|
||||
@TeamId NVARCHAR(200)
|
||||
AS
|
||||
BEGIN
|
||||
SET NOCOUNT ON;
|
||||
|
||||
SELECT TOP 1 *
|
||||
FROM [dbo].[OrganizationIntegrationView]
|
||||
CROSS APPLY OPENJSON([Configuration], '$.Teams')
|
||||
WITH ( TeamId NVARCHAR(MAX) '$.id' ) t
|
||||
WHERE [Type] = 7
|
||||
AND JSON_VALUE([Configuration], '$.TenantId') = @TenantId
|
||||
AND t.TeamId = @TeamId
|
||||
AND JSON_VALUE([Configuration], '$.ChannelId') IS NULL
|
||||
AND JSON_VALUE([Configuration], '$.ServiceUrl') IS NULL;
|
||||
END
|
||||
GO
|
||||
Reference in New Issue
Block a user