Merge branch 'feat/0.5.0/timeline_ai' into test

This commit is contained in:
aichy126 2022-12-02 15:01:43 +08:00
commit 7af6eaac2d
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ func (rr *revisionRepo) GetUnreviewedRevisionPage(ctx context.Context, page int,
session := rr.data.DB.NewSession()
session = session.And("status = ?", entity.RevisionUnreviewedStatus)
session = session.In("object_type", objectTypeList)
session = session.OrderBy("created_at desc")
session = session.OrderBy("created_at asc")
total, err = pager.Help(page, pageSize, &revisionList, &entity.Revision{}, session)
if err != nil {