mirror of
https://github.com/bitwarden/server
synced 2025-12-19 09:43:25 +00:00
[Soft Delete] - Add not null/is null filters to soft delete and restore sprocs
This commit is contained in:
@@ -21,8 +21,9 @@ BEGIN
|
||||
[dbo].[UserCipherDetails](@UserId)
|
||||
WHERE
|
||||
[Edit] = 1
|
||||
AND [DeletedDate] IS NOT NULL
|
||||
AND [Id] IN (SELECT * FROM @Ids)
|
||||
|
||||
|
||||
DECLARE @UtcNow DATETIME2(7) = GETUTCDATE();
|
||||
UPDATE
|
||||
[dbo].[Cipher]
|
||||
|
||||
@@ -21,6 +21,7 @@ BEGIN
|
||||
[dbo].[UserCipherDetails](@UserId)
|
||||
WHERE
|
||||
[Edit] = 1
|
||||
AND [DeletedDate] IS NULL
|
||||
AND [Id] IN (SELECT * FROM @Ids)
|
||||
|
||||
-- Delete ciphers
|
||||
|
||||
Reference in New Issue
Block a user