1
0
mirror of https://github.com/bitwarden/server synced 2026-01-05 01:53:17 +00:00
Files
server/src/Sql/dbo/Stored Procedures/Group_ReadCountByOrganizationId.sql
Thomas Rittson 4643f5960e [EC-635] Extract organizationService.UpdateLicenseAsync to a command (#2408)
* move UpdateLicenseAsync from service to command
* create new SelfHostedOrganizationDetails view model and move license validation logic there
* move occupied seat count logic to database level
2023-02-24 07:54:19 +10:00

14 lines
242 B
Transact-SQL

CREATE PROCEDURE [dbo].[Group_ReadCountByOrganizationId]
@OrganizationId UNIQUEIDENTIFIER
AS
BEGIN
SET NOCOUNT ON
SELECT
COUNT(1)
FROM
[dbo].[Group]
WHERE
[OrganizationId] = @OrganizationId
END