From 51021585a7d7623696ad90ab0ea3b2658c8da2bb Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Tue, 3 Jan 2017 11:45:56 +0800 Subject: [PATCH] build failed by deleting release by API (#562) --- 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 }