1
0
mirror of https://github.com/bitwarden/server synced 2026-01-20 09:23:28 +00:00

Deleted date on Cipher table, related sprocs and repositories updated

This commit is contained in:
Chad Scharf
2020-03-26 19:32:37 -04:00
parent a74df16848
commit bc46eccf70
13 changed files with 601 additions and 44 deletions

View File

@@ -1,5 +1,6 @@
CREATE PROCEDURE [dbo].[CipherDetails_ReadByUserId]
@UserId UNIQUEIDENTIFIER
@UserId UNIQUEIDENTIFIER,
@Deleted BIT = 0
AS
BEGIN
SET NOCOUNT ON
@@ -8,4 +9,7 @@ BEGIN
*
FROM
[dbo].[UserCipherDetails](@UserId)
WHERE
(@Deleted = 1 AND [DeletedDate] IS NOT NULL)
OR (@Deleted = 0 AND [DeletedDate] IS NULL)
END