mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 15:42:48 -05:00
fixes to event get APIs
This commit is contained in:
@ -121,5 +121,14 @@ namespace Bit.Core.Models.Data
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public override void ReadEntity(IDictionary<string, EntityProperty> properties, OperationContext operationContext)
|
||||
{
|
||||
base.ReadEntity(properties, operationContext);
|
||||
if(properties.ContainsKey(nameof(Type)) && properties[nameof(Type)].Int32Value.HasValue)
|
||||
{
|
||||
Type = (EventType)properties[nameof(Type)].Int32Value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user