From 0c59edaafa94738b8eaec1620f20887cc35d90e2 Mon Sep 17 00:00:00 2001 From: Lauris BH Date: Fri, 20 Jul 2018 05:10:17 +0300 Subject: Update xorm to latest version and fix correct `user` table referencing in sql (#4473) --- models/issue_watch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models/issue_watch.go') diff --git a/models/issue_watch.go b/models/issue_watch.go index 3e7d24821b..579c915476 100644 --- a/models/issue_watch.go +++ b/models/issue_watch.go @@ -67,7 +67,7 @@ func getIssueWatchers(e Engine, issueID int64) (watches []*IssueWatch, err error Where("`issue_watch`.issue_id = ?", issueID). And("`user`.is_active = ?", true). And("`user`.prohibit_login = ?", false). - Join("INNER", "user", "`user`.id = `issue_watch`.user_id"). + Join("INNER", "`user`", "`user`.id = `issue_watch`.user_id"). Find(&watches) return } -- cgit v1.2.3