From 7257c39ddfe9d9d424192e6bd307a70ed544f5be Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Tue, 12 May 2020 23:54:35 +0200 Subject: Refactor Milestone related (#11225) --- routers/user/home.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'routers/user') diff --git a/routers/user/home.go b/routers/user/home.go index 816968562f..199694f236 100644 --- a/routers/user/home.go +++ b/routers/user/home.go @@ -224,7 +224,7 @@ func Milestones(ctx *context.Context) { } } - counts, err := models.CountMilestones(userRepoCond, isShowClosed) + counts, err := models.CountMilestonesByRepoCond(userRepoCond, isShowClosed) if err != nil { ctx.ServerError("CountMilestonesByRepoIDs", err) return @@ -267,7 +267,7 @@ func Milestones(ctx *context.Context) { i++ } - milestoneStats, err := models.GetMilestonesStats(repoCond) + milestoneStats, err := models.GetMilestonesStatsByRepoCond(repoCond) if err != nil { ctx.ServerError("GetMilestoneStats", err) return @@ -277,7 +277,7 @@ func Milestones(ctx *context.Context) { if len(repoIDs) == 0 { totalMilestoneStats = milestoneStats } else { - totalMilestoneStats, err = models.GetMilestonesStats(userRepoCond) + totalMilestoneStats, err = models.GetMilestonesStatsByRepoCond(userRepoCond) if err != nil { ctx.ServerError("GetMilestoneStats", err) return -- cgit v1.2.3