mirror of https://gitee.com/answerdev/answer.git
update admin question list
This commit is contained in:
parent
fc94d667b7
commit
749e4bced2
|
@ -323,7 +323,7 @@ func (ar *answerRepo) AdminSearchList(ctx context.Context, search *entity.AdminA
|
|||
|
||||
offset := search.Page * search.PageSize
|
||||
session.
|
||||
OrderBy("a.updated_at desc").
|
||||
OrderBy("a.created_at desc").
|
||||
Limit(search.PageSize, offset)
|
||||
count, err = session.FindAndCount(&rows)
|
||||
if err != nil {
|
||||
|
|
|
@ -371,7 +371,7 @@ func (qr *questionRepo) AdminSearchList(ctx context.Context, search *schema.Admi
|
|||
|
||||
offset := search.Page * search.PageSize
|
||||
|
||||
session.OrderBy("updated_at desc").
|
||||
session.OrderBy("created_at desc").
|
||||
Limit(search.PageSize, offset)
|
||||
count, err = session.FindAndCount(&rows)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue