1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-04 01:22:50 -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

@ -40,7 +40,7 @@ namespace Bit.Api.Controllers
return new ListResponseModel<EventResponseModel>(responses);
}
[HttpGet("~/organization/{id}/events")]
[HttpGet("~/organizations/{id}/events")]
public async Task<ListResponseModel<EventResponseModel>> GetOrganization(string id,
[FromQuery]DateTime? start = null, [FromQuery]DateTime? end = null)
{
@ -70,7 +70,7 @@ namespace Bit.Api.Controllers
start = end.Value.AddDays(-30);
if(endSet)
{
start = end.Value.AddMilliseconds(1);
start = start.Value.AddMilliseconds(1);
}
}