mirror of
https://github.com/bitwarden/server.git
synced 2026-01-31 22:23:18 +08:00
16 lines
389 B
MySQL
16 lines
389 B
MySQL
|
|
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
|