diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2017-03-10 22:05:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-10 22:05:53 +0800 |
commit | f5476bdbb182835996e4e7269df64bf50dfc367b (patch) | |
tree | 8e407be681010b4808db0132105720f93df321d9 | |
parent | 656efdc1c74b59a10e1fb1d5a19abd36ce689402 (diff) | |
download | gitea-f5476bdbb182835996e4e7269df64bf50dfc367b.tar.gz gitea-f5476bdbb182835996e4e7269df64bf50dfc367b.zip |
bug fixed for delete repo failed (#1193)
-rw-r--r-- | models/repo.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |