Fix migration crash (#2430)
This commit is contained in:
parent
c6bdb67981
commit
276a93c497
|
@ -394,10 +394,10 @@ namespace Bit.Core.Services
|
||||||
// use values from first userId to apply globals
|
// use values from first userId to apply globals
|
||||||
if (firstUserId != null)
|
if (firstUserId != null)
|
||||||
{
|
{
|
||||||
var theme = await GetValueAsync<int?>(Storage.LiteDb, V3Keys.ThemeKey(firstUserId));
|
var theme = await GetValueAsync<string>(Storage.LiteDb, V3Keys.ThemeKey(firstUserId));
|
||||||
await SetValueAsync(Storage.LiteDb, V4Keys.ThemeKey, theme);
|
await SetValueAsync(Storage.LiteDb, V4Keys.ThemeKey, theme);
|
||||||
|
|
||||||
var autoDarkTheme = await GetValueAsync<int?>(Storage.LiteDb, V3Keys.AutoDarkThemeKey(firstUserId));
|
var autoDarkTheme = await GetValueAsync<string>(Storage.LiteDb, V3Keys.AutoDarkThemeKey(firstUserId));
|
||||||
await SetValueAsync(Storage.LiteDb, V4Keys.AutoDarkThemeKey, autoDarkTheme);
|
await SetValueAsync(Storage.LiteDb, V4Keys.AutoDarkThemeKey, autoDarkTheme);
|
||||||
|
|
||||||
var disableFavicon = await GetValueAsync<bool?>(Storage.LiteDb, V3Keys.DisableFaviconKey(firstUserId));
|
var disableFavicon = await GetValueAsync<bool?>(Storage.LiteDb, V3Keys.DisableFaviconKey(firstUserId));
|
||||||
|
|
Loading…
Reference in New Issue