fix(comments): order comments by created timestamp instead of id
Partially resolves https://community.vikunja.io/t/trello-import-comments-and-assignments/2174/14
This commit is contained in:
parent
6e2b540394
commit
75f830457b
@ -270,7 +270,7 @@ func (tc *TaskComment) ReadAll(s *xorm.Session, auth web.Auth, search string, pa
|
|||||||
query := s.
|
query := s.
|
||||||
Where(builder.And(where...)).
|
Where(builder.And(where...)).
|
||||||
Join("LEFT", "users", "users.id = task_comments.author_id").
|
Join("LEFT", "users", "users.id = task_comments.author_id").
|
||||||
OrderBy("task_comments.id asc")
|
OrderBy("task_comments.created asc")
|
||||||
if limit > 0 {
|
if limit > 0 {
|
||||||
query = query.Limit(limit, start)
|
query = query.Limit(limit, start)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user