diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2017-01-03 11:45:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-03 11:45:56 +0800 |
commit | 51021585a7d7623696ad90ab0ea3b2658c8da2bb (patch) | |
tree | a75c3040b085632e298b72ca406a0820113dc5e5 /routers/api | |
parent | 4b0974ec10e6b43dd38cacda43424ee0cdde039e (diff) | |
download | gitea-51021585a7d7623696ad90ab0ea3b2658c8da2bb.tar.gz gitea-51021585a7d7623696ad90ab0ea3b2658c8da2bb.zip |
build failed by deleting release by API (#562)
Diffstat (limited to 'routers/api')
-rw-r--r-- | routers/api/v1/repo/release.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo/release.go b/routers/api/v1/repo/release.go index e07fc42305..d14f2f3cae 100644 --- a/routers/api/v1/repo/release.go +++ b/routers/api/v1/repo/release.go @@ -178,7 +178,7 @@ func DeleteRelease(ctx *context.APIContext) { ctx.Status(404) return } - if err := models.DeleteReleaseByID(id, ctx.User); err != nil { + if err := models.DeleteReleaseByID(id, ctx.User, false); err != nil { ctx.Error(500, "DeleteReleaseByID", err) return } |