diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-10-01 00:10:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-01 00:10:00 +0800 |
commit | 3249c0ccba5b3082fe60f4b571159016db6d57d7 (patch) | |
tree | 300f96f564ad68833a439c765defe347fbbcb350 /routers/api/v1/repo/release.go | |
parent | ecd4bfd2844346e0f2af795d9815e2224556ef47 (diff) | |
download | gitea-3249c0ccba5b3082fe60f4b571159016db6d57d7.tar.gz gitea-3249c0ccba5b3082fe60f4b571159016db6d57d7.zip |
Extract actions on deletereleasebyid from models to release service (#8219)
* extract actions on deletereleasebyid from models to release service
* fix tests
Diffstat (limited to 'routers/api/v1/repo/release.go')
-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 da32b955fb..8bcebf6b40 100644 --- a/routers/api/v1/repo/release.go +++ b/routers/api/v1/repo/release.go @@ -316,7 +316,7 @@ func DeleteRelease(ctx *context.APIContext) { ctx.NotFound() return } - if err := models.DeleteReleaseByID(id, ctx.User, false); err != nil { + if err := releaseservice.DeleteReleaseByID(id, ctx.User, false); err != nil { ctx.Error(500, "DeleteReleaseByID", err) return } |