Skip to content

Commit 687e2df

Browse files
authored
Fix consistency check (#15120)
In my last fix I missed adding the label_ prefix to the consistency check count. Signed-off-by: Andrew Thornton <art27@cantab.net>
1 parent 4c4a86b commit 687e2df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/consistency.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ func FixCommentTypeLabelWithOutsideLabels() (int64, error) {
368368
func CountIssueLabelWithOutsideLabels() (int64, error) {
369369
return x.Where(builder.Expr("issue.repo_id != label.repo_id OR (label.repo_id = 0 AND repository.owner_id != label.org_id)")).
370370
Table("issue_label").
371-
Join("inner", "label", "issue_label.id = label.id ").
371+
Join("inner", "label", "issue_label.label_id = label.id ").
372372
Join("inner", "issue", "issue.id = issue_label.issue_id ").
373373
Join("inner", "repository", "issue.repo_id = repository.id").
374374
Count(new(IssueLabel))

0 commit comments

Comments
 (0)