mirror of
https://github.com/bitwarden/server.git
synced 2026-02-04 16:13:12 +08:00
react to contact changes not being set from identity
This commit is contained in:
@@ -33,12 +33,12 @@ namespace Bit.Api.Models
|
||||
[StringLength(10000)]
|
||||
public string Notes { get; set; }
|
||||
|
||||
public virtual Cipher ToCipher(string userId = null)
|
||||
public virtual Cipher ToCipher(Guid userId)
|
||||
{
|
||||
var cipher = new Cipher
|
||||
{
|
||||
Id = new Guid(Id),
|
||||
UserId = new Guid(userId),
|
||||
UserId = userId,
|
||||
FolderId = string.IsNullOrWhiteSpace(FolderId) ? null : (Guid?)new Guid(FolderId),
|
||||
Type = Type
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user