1
0
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:
Kyle Spearrin
2017-12-14 15:04:20 -05:00
parent f8f8eb5411
commit 2c4ce27ef2
4 changed files with 16 additions and 7 deletions

View File

@ -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;
}
}
}
}