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; }