diff --git a/models/repo.go b/models/repo.go index 8361780bfd..d44f4ba489 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 }