forked from forgejo/forgejo
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
|
@ -310,7 +310,7 @@ func GetCommentByID(id int64) (*Comment, error) {
|
|||
// GetCommentsByIssueID returns all comments of issue by given ID.
|
||||
func GetCommentsByIssueID(issueID int64) ([]*Comment, error) {
|
||||
comments := make([]*Comment, 0, 10)
|
||||
return comments, x.Where("issue_id=?", issueID).Asc("created").Find(&comments)
|
||||
return comments, x.Where("issue_id=?", issueID).Asc("created_unix").Find(&comments)
|
||||
}
|
||||
|
||||
// UpdateComment updates information of comment.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue