mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-05-17 23:00:02 +02:00
Updated and created were appended with _unix. Fresh databases have only the newly named fields.
This commit is contained in:
parent
5267dce210
commit
1314ba219e
6 changed files with 11 additions and 10 deletions
|
@ -131,7 +131,7 @@ func GetReleaseByID(id int64) (*Release, error) {
|
|||
|
||||
// GetReleasesByRepoID returns a list of releases of repository.
|
||||
func GetReleasesByRepoID(repoID int64) (rels []*Release, err error) {
|
||||
err = x.Desc("created").Find(&rels, Release{RepoID: repoID})
|
||||
err = x.Desc("created_unix").Find(&rels, Release{RepoID: repoID})
|
||||
return rels, err
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue