aboutsummaryrefslogtreecommitdiffstats
path: root/models/issues/milestone_list.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/issues/milestone_list.go')
-rw-r--r--models/issues/milestone_list.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/issues/milestone_list.go b/models/issues/milestone_list.go
index d5c9b1358c..d55c18a995 100644
--- a/models/issues/milestone_list.go
+++ b/models/issues/milestone_list.go
@@ -58,8 +58,8 @@ func (opts GetMilestonesOption) toCond() builder.Cond {
}
// GetMilestones returns milestones filtered by GetMilestonesOption's
-func GetMilestones(opts GetMilestonesOption) (MilestoneList, int64, error) {
- sess := db.GetEngine(db.DefaultContext).Where(opts.toCond())
+func GetMilestones(ctx context.Context, opts GetMilestonesOption) (MilestoneList, int64, error) {
+ sess := db.GetEngine(ctx).Where(opts.toCond())
if opts.Page != 0 {
sess = db.SetSessionPagination(sess, &opts)