1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-22 12:15:36 +01:00

Fix delcaration of @UtcNow variable

This commit is contained in:
Chad Scharf 2020-04-02 14:08:19 -04:00
parent 3d786cbf28
commit 7f22088d5f
2 changed files with 3 additions and 6 deletions

View File

@ -23,8 +23,7 @@ BEGIN
[Edit] = 1 [Edit] = 1
AND [Id] IN (SELECT * FROM @Ids) AND [Id] IN (SELECT * FROM @Ids)
DECLARE @UtcNow DATETIME2(7); DECLARE @UtcNow DATETIME2(7) = GETUTCDATE();
SET @UtcNow = GETUTCDATE();
UPDATE UPDATE
[dbo].[Cipher] [dbo].[Cipher]
SET SET

View File

@ -31,8 +31,7 @@ BEGIN
[Edit] = 1 [Edit] = 1
AND [Id] IN (SELECT * FROM @Ids) AND [Id] IN (SELECT * FROM @Ids)
DECLARE @UtcNow DATETIME2(7); DECLARE @UtcNow DATETIME2(7) = GETUTCDATE();
SET @UtcNow = GETUTCDATE();
UPDATE UPDATE
[dbo].[Cipher] [dbo].[Cipher]
SET SET
@ -99,8 +98,7 @@ BEGIN
AND [Id] IN (SELECT * FROM @Ids) AND [Id] IN (SELECT * FROM @Ids)
-- Delete ciphers -- Delete ciphers
DECLARE @UtcNow DATETIME2(7); DECLARE @UtcNow DATETIME2(7) = GETUTCDATE();
SET @UtcNow = GETUTCDATE();
UPDATE UPDATE
[dbo].[Cipher] [dbo].[Cipher]
SET SET