Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-25 03:06:10 +01:00

build failed by deleting release by API (#562)

This commit is contained in:
Lunny Xiao 2017-01-03 11:45:56 +08:00 committed by GitHub
parent 4b0974ec10
commit 51021585a7

View file

@ -178,7 +178,7 @@ func DeleteRelease(ctx *context.APIContext) {
ctx.Status(404) ctx.Status(404)
return 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) ctx.Error(500, "DeleteReleaseByID", err)
return return
} }