migration flag fix

This commit is contained in:
Kyle Spearrin 2019-06-01 00:42:26 -04:00
parent 638de90cc4
commit 50f71e7280
2 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ namespace Bit.App.Migration
public static bool NeedsMigration()
{
return ServiceContainer.Resolve<SettingsShim>("settingsShim")
.GetValueOrDefault(Constants.OldLastActivityKey, DateTime.MinValue) > DateTime.MinValue;
.GetValueOrDefault(Constants.OldUserIdKey, DateTime.MinValue) > DateTime.MinValue;
}
public static async Task<bool> 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;
}
}

View File

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