fix: analytics avg_daily_expense uses selected month/year instead of current
All checks were successful
CI / ci (push) Successful in 13s
All checks were successful
CI / ci (push) Successful in 13s
This commit is contained in:
@@ -162,6 +162,6 @@ func (s *FinanceService) GetSummary(userID int64, month, year int) (*model.Finan
|
||||
return s.repo.GetSummary(userID, month, year)
|
||||
}
|
||||
|
||||
func (s *FinanceService) GetAnalytics(userID int64, months int) (*model.FinanceAnalytics, error) {
|
||||
return s.repo.GetAnalytics(userID, months)
|
||||
func (s *FinanceService) GetAnalytics(userID int64, months, month, year int) (*model.FinanceAnalytics, error) {
|
||||
return s.repo.GetAnalytics(userID, months, month, year)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user