mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 08:32:50 -05:00
convert fav and folder json to userid object
This commit is contained in:
@ -192,7 +192,7 @@ namespace Bit.Core.Services
|
||||
|
||||
if(cipher.UserId.HasValue && cipher.Favorite)
|
||||
{
|
||||
cipher.Favorites = $"[{{\"u\":\"{cipher.UserId.ToString().ToUpperInvariant()}\"}}]";
|
||||
cipher.Favorites = $"{{\"{cipher.UserId.ToString().ToUpperInvariant()}\":\"true\"}}";
|
||||
}
|
||||
}
|
||||
|
||||
@ -213,8 +213,8 @@ namespace Bit.Core.Services
|
||||
continue;
|
||||
}
|
||||
|
||||
cipher.Folders = $"[{{\"u\":\"{cipher.UserId.ToString().ToUpperInvariant()}\"," +
|
||||
$"\"f\":\"{folder.Id.ToString().ToUpperInvariant()}\"}}]";
|
||||
cipher.Folders = $"{{\"{cipher.UserId.ToString().ToUpperInvariant()}\":" +
|
||||
$"\"{folder.Id.ToString().ToUpperInvariant()}\"}}";
|
||||
}
|
||||
|
||||
// Create it all
|
||||
|
Reference in New Issue
Block a user