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:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user