mirror of
https://github.com/bitwarden/server
synced 2026-01-06 10:34:01 +00:00
updated sproc to clear push token, not identifier
This commit is contained in:
@@ -66,10 +66,7 @@ namespace Bit.Core.Repositories.SqlServer
|
|||||||
{
|
{
|
||||||
await connection.ExecuteAsync(
|
await connection.ExecuteAsync(
|
||||||
$"[{Schema}].[{Table}_ClearPushTokenByIdentifier]",
|
$"[{Schema}].[{Table}_ClearPushTokenByIdentifier]",
|
||||||
new
|
new { Identifier = identifier },
|
||||||
{
|
|
||||||
Identifier = identifier
|
|
||||||
},
|
|
||||||
commandType: CommandType.StoredProcedure);
|
commandType: CommandType.StoredProcedure);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ BEGIN
|
|||||||
UPDATE
|
UPDATE
|
||||||
[dbo].[Device]
|
[dbo].[Device]
|
||||||
SET
|
SET
|
||||||
[Identifier] = NULL
|
[PushToken] = NULL
|
||||||
WHERE
|
WHERE
|
||||||
[Identifier] = @Identifier
|
[Identifier] = @Identifier
|
||||||
END
|
END
|
||||||
|
|||||||
Reference in New Issue
Block a user