bug fixed for delete repo failed (#1193) (#1195)

This commit is contained in:
Lunny Xiao 2017-03-10 22:28:00 +08:00 committed by GitHub
parent c9baf9d14b
commit e4706127f9

View file

@ -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
}