From f5476bdbb182835996e4e7269df64bf50dfc367b Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Fri, 10 Mar 2017 22:05:53 +0800 Subject: [PATCH] bug fixed for delete repo failed (#1193) --- models/repo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/repo.go b/models/repo.go index 8361780bf..d44f4ba48 100644 --- a/models/repo.go +++ b/models/repo.go @@ -1585,7 +1585,7 @@ func DeleteRepository(uid, repoID int64) error { attachments := make([]*Attachment, 0, 5) if err = sess. - In("issue_id=?", issueIDs). + In("issue_id", issueIDs). Find(&attachments); err != nil { return err }