diff --git a/Back/skydiveLogs-api.DomainBusiness/StatsService.cs b/Back/skydiveLogs-api.DomainBusiness/StatsService.cs index 378f69a..6f0982b 100644 --- a/Back/skydiveLogs-api.DomainBusiness/StatsService.cs +++ b/Back/skydiveLogs-api.DomainBusiness/StatsService.cs @@ -345,6 +345,7 @@ namespace skydiveLogs_api.DomainBusiness myStats.ForLastMonthByJumpType = resetStats.ForLastMonthByJumpType; myStats.ForLastYearByDz = resetStats.ForLastYearByDz; myStats.ForLastYearByJumpType = resetStats.ForLastYearByJumpType; + myStats.ByYearByJumpType = resetStats.ByYearByJumpType; _userStatsRepository.Update(myStats); } @@ -358,8 +359,10 @@ namespace skydiveLogs_api.DomainBusiness var allStats = _userStatsRepository.GetAll(_identityService.ConnectedUser); if (allStats == null) { - allStats = new UserStats(); - allStats.User = _identityService.ConnectedUser; + allStats = new UserStats + { + User = _identityService.ConnectedUser + }; _userStatsRepository.Add(allStats); }