From 50f71e7280eda037099d7a6217f7d4f0d083a38c Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sat, 1 Jun 2019 00:42:26 -0400 Subject: [PATCH] migration flag fix --- src/App/Migration/MigrationHelpers.cs | 4 ++-- src/Core/Constants.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/App/Migration/MigrationHelpers.cs b/src/App/Migration/MigrationHelpers.cs index 3b6dc1d46..70e27a3c4 100644 --- a/src/App/Migration/MigrationHelpers.cs +++ b/src/App/Migration/MigrationHelpers.cs @@ -14,7 +14,7 @@ namespace Bit.App.Migration public static bool NeedsMigration() { return ServiceContainer.Resolve("settingsShim") - .GetValueOrDefault(Constants.OldLastActivityKey, DateTime.MinValue) > DateTime.MinValue; + .GetValueOrDefault(Constants.OldUserIdKey, DateTime.MinValue) > DateTime.MinValue; } public static async Task PerformMigrationAsync() @@ -158,7 +158,7 @@ namespace Bit.App.Migration await cryptoService.SetEncPrivateKeyAsync(oldEncPrivateKey); // Remove "needs migration" flag - settingsShim.Remove(Constants.OldLastActivityKey); + settingsShim.Remove(Constants.OldUserIdKey); return true; } } diff --git a/src/Core/Constants.cs b/src/Core/Constants.cs index 66270290d..961ccd159 100644 --- a/src/Core/Constants.cs +++ b/src/Core/Constants.cs @@ -24,7 +24,7 @@ public static string ClearClipboardKey = "clearClipboard"; public static string LastClipboardValueKey = "lastClipboardValue"; public static string LastBuildKey = "lastBuild"; - public static string OldLastActivityKey = "other:lastActivityDate"; + public static string OldUserIdKey = "userId"; public const int SelectFileRequestCode = 42; public const int SelectFilePermissionRequestCode = 43; }