mirror of
https://github.com/bitwarden/server
synced 2025-12-16 00:03:54 +00:00
cleanup
This commit is contained in:
@@ -27,6 +27,6 @@ SELECT
|
||||
END [FolderId],
|
||||
C.[DeletedDate],
|
||||
C.[Reprompt],
|
||||
C.[Key],
|
||||
C.[Key]
|
||||
FROM
|
||||
[dbo].[Cipher] C
|
||||
|
||||
@@ -12,7 +12,19 @@ WITH [CTE] AS (
|
||||
AND [Status] = 2 -- Confirmed
|
||||
)
|
||||
SELECT
|
||||
C.*,
|
||||
C.Id,
|
||||
C.UserId,
|
||||
C.OrganizationId,
|
||||
C.Type,
|
||||
C.Data,
|
||||
C.Attachments,
|
||||
C.CreationDate,
|
||||
C.RevisionDate,
|
||||
C.Favorite,
|
||||
C.FolderId,
|
||||
C.DeletedDate,
|
||||
C.Reprompt,
|
||||
C.Key,
|
||||
CASE
|
||||
WHEN COALESCE(CU.[ReadOnly], CG.[ReadOnly], 0) = 0
|
||||
THEN 1
|
||||
@@ -56,7 +68,19 @@ WHERE
|
||||
UNION ALL
|
||||
|
||||
SELECT
|
||||
*,
|
||||
C.Id,
|
||||
C.UserId,
|
||||
C.OrganizationId,
|
||||
C.Type,
|
||||
C.Data,
|
||||
C.Attachments,
|
||||
C.CreationDate,
|
||||
C.RevisionDate,
|
||||
C.Favorite,
|
||||
C.FolderId,
|
||||
C.DeletedDate,
|
||||
C.Reprompt,
|
||||
C.Key,
|
||||
1 [Edit],
|
||||
1 [ViewPassword],
|
||||
1 [Manage],
|
||||
|
||||
@@ -10,7 +10,7 @@ BEGIN
|
||||
DELETE Ca
|
||||
FROM [dbo].[CipherArchive] Ca
|
||||
INNER JOIN @Ids I ON Ca.CipherId = I.[Id]
|
||||
WHERE Ca.UserId = @UserId
|
||||
WHERE Ca.UserId = @UserId;
|
||||
|
||||
EXEC [dbo].[User_BumpAccountRevisionDate] @UserId
|
||||
|
||||
|
||||
Reference in New Issue
Block a user