mirror of
https://github.com/bitwarden/server
synced 2025-12-23 11:43:23 +00: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