Change value history to not group

This commit is contained in:
2019-10-06 19:01:35 -04:00
parent 67aa3def4b
commit d593c0095f
4 changed files with 10 additions and 18 deletions

View File

@@ -33,9 +33,9 @@ namespace ChrisKaczor.HomeMonitor.Weather.Service.Controllers
}
[HttpGet("value-history")]
public async Task<ActionResult<List<WeatherValue>>> GetValueHistory(WeatherValueType weatherValueType, DateTimeOffset start, DateTimeOffset end, int bucketMinutes = 2)
public async Task<ActionResult<List<WeatherValue>>> GetValueHistory(WeatherValueType weatherValueType, DateTimeOffset start, DateTimeOffset end)
{
return (await _database.GetReadingValueHistory(weatherValueType, start, end, bucketMinutes)).ToList();
return (await _database.GetReadingValueHistory(weatherValueType, start, end)).ToList();
}
[HttpGet("history-grouped")]