diff --git a/src/Solar.Api/Services/SolarService.cs b/src/Solar.Api/Services/SolarService.cs index 5ee17fa..74bc3c0 100644 --- a/src/Solar.Api/Services/SolarService.cs +++ b/src/Solar.Api/Services/SolarService.cs @@ -129,7 +129,7 @@ public class SolarService { current = (current.Year, current.Month + 1); } - } while (current.Year < toYear || current.Month < toMonth); + } while (current.Year < toYear || (current.Year == toYear && current.Month <= toMonth)); return new MonthSummariesResponse(results.ToArray()); }