mirror of
https://github.com/bitwarden/server
synced 2025-12-06 00:03:34 +00:00
16 lines
389 B
Transact-SQL
16 lines
389 B
Transact-SQL
CREATE OR ALTER PROCEDURE [dbo].[SecurityTask_MarkCompleteByCipherIds]
|
|
@CipherIds AS [dbo].[GuidIdArray] READONLY
|
|
AS
|
|
BEGIN
|
|
SET NOCOUNT ON
|
|
|
|
UPDATE
|
|
[dbo].[SecurityTask]
|
|
SET
|
|
[Status] = 1, -- Completed
|
|
[RevisionDate] = SYSUTCDATETIME()
|
|
WHERE
|
|
[CipherId] IN (SELECT [Id] FROM @CipherIds)
|
|
AND [Status] <> 1 -- Not already completed
|
|
END
|