File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -1266,6 +1266,8 @@ func CountIssuesByRepo(opts *IssuesOptions) (map[int64]int64, error) {
1266
1266
sess := x .NewSession ()
1267
1267
defer sess .Close ()
1268
1268
1269
+ sess .Join ("INNER" , "repository" , "`issue`.repo_id = `repository`.id" )
1270
+
1269
1271
opts .setupSession (sess )
1270
1272
1271
1273
countsSlice := make ([]* struct {
@@ -1312,6 +1314,7 @@ func Issues(opts *IssuesOptions) ([]*Issue, error) {
1312
1314
sess := x .NewSession ()
1313
1315
defer sess .Close ()
1314
1316
1317
+ sess .Join ("INNER" , "repository" , "`issue`.repo_id = `repository`.id" )
1315
1318
opts .setupSession (sess )
1316
1319
sortIssuesSession (sess , opts .SortType , opts .PriorityRepoID )
1317
1320
@@ -1339,6 +1342,7 @@ func CountIssues(opts *IssuesOptions) (int64, error) {
1339
1342
}, 0 , 1 )
1340
1343
1341
1344
sess .Select ("COUNT(issue.id) AS count" ).Table ("issue" )
1345
+ sess .Join ("INNER" , "repository" , "`issue`.repo_id = `repository`.id" )
1342
1346
opts .setupSession (sess )
1343
1347
if err := sess .Find (& countsSlice ); err != nil {
1344
1348
return 0 , fmt .Errorf ("Find: %v" , err )
You can’t perform that action at this time.
0 commit comments