From eb2e37b82a844016258753401a33cdd2d3a249da Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Tue, 3 Jan 2017 11:28:57 +0800 Subject: [PATCH] build failed by deleting release by API --- routers/api/v1/repo/release.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/api/v1/repo/release.go b/routers/api/v1/repo/release.go index e07fc42305d7f..d14f2f3caebc8 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 }