From e4706127f980892aa887ba06874a622ece11f1d1 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Fri, 10 Mar 2017 22:28:00 +0800 Subject: [PATCH] bug fixed for delete repo failed (#1193) (#1195) --- 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 }