diff options
author | Daniel Fonseca de Lira | 2019-09-25 16:50:54 -0300 |
---|---|---|
committer | Lauris BH | 2019-09-25 22:50:54 +0300 |
commit | e51d91a258630eb3bdd662eea34ba2ca9341a915 (patch) | |
tree | 778ace198c4f83e8abf30e71b11257283d46f0bd | |
parent | 0ed5a647dd7928c75c78a8ef1cffc4fde2c2a79c (diff) |
Fix assets on release webhook (#8283)
-rw-r--r-- | models/release.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/models/release.go b/models/release.go index c9bb19dc3..0fbfc121b 100644 --- a/models/release.go +++ b/models/release.go @@ -397,13 +397,15 @@ func UpdateRelease(doer *User, gitRepo *git.Repository, rel *Release, attachment return err } + if err = addReleaseAttachments(rel.ID, attachmentUUIDs); err != nil { + log.Error("addReleaseAttachments: %v", err) + } + err = rel.loadAttributes(x) if err != nil { return err } - err = addReleaseAttachments(rel.ID, attachmentUUIDs) - mode, _ := AccessLevel(doer, rel.Repo) if err1 := PrepareWebhooks(rel.Repo, HookEventRelease, &api.ReleasePayload{ Action: api.HookReleaseUpdated, |