diff options
author | zeripath <art27@cantab.net> | 2021-03-23 10:23:33 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-23 11:23:33 +0100 |
commit | 687e2dfa554f7b32353c30048f62792d85edeb38 (patch) | |
tree | 7f4f290677e34230f2b2f00f34e47c6c3b450bab /models/consistency.go | |
parent | 4c4a86bf8c062001adb1f513b98958f9da2af23a (diff) | |
download | gitea-687e2dfa554f7b32353c30048f62792d85edeb38.tar.gz gitea-687e2dfa554f7b32353c30048f62792d85edeb38.zip |
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>
Diffstat (limited to 'models/consistency.go')
-rw-r--r-- | models/consistency.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/consistency.go b/models/consistency.go index 9f4cf759c7..c7a70afcdd 100644 --- a/models/consistency.go +++ b/models/consistency.go @@ -368,7 +368,7 @@ func FixCommentTypeLabelWithOutsideLabels() (int64, error) { func CountIssueLabelWithOutsideLabels() (int64, error) { return x.Where(builder.Expr("issue.repo_id != label.repo_id OR (label.repo_id = 0 AND repository.owner_id != label.org_id)")). Table("issue_label"). - Join("inner", "label", "issue_label.id = label.id "). + Join("inner", "label", "issue_label.label_id = label.id "). Join("inner", "issue", "issue.id = issue_label.issue_id "). Join("inner", "repository", "issue.repo_id = repository.id"). Count(new(IssueLabel)) |