sort release attachments by name (#15008)

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
tokarchuk/v1.17
Norwin 4 years ago committed by GitHub
parent 51ea8dd444
commit 5d57f4bcb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      models/release.go

@ -282,7 +282,7 @@ func getReleaseAttachments(e Engine, rels ...*Release) (err error) {
// Select attachments // Select attachments
err = e. err = e.
Asc("release_id"). Asc("release_id", "name").
In("release_id", sortedRels.ID). In("release_id", sortedRels.ID).
Find(&attachments, Attachment{}) Find(&attachments, Attachment{})
if err != nil { if err != nil {

Loading…
Cancel
Save