update admin question list

This commit is contained in:
aichy126 2023-05-26 11:09:55 +08:00
parent fc94d667b7
commit 749e4bced2
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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 {