1 #820

Merged
chenhao merged 1 commits from BUG-20241119 into test 2024-11-21 17:16:52 +08:00
1 changed files with 1 additions and 2 deletions
Showing only changes of commit 213d7b891c - Show all commits

View File

@ -1652,8 +1652,7 @@ func (m *Mongo) GetMomentListByStatus(ctx *gin.Context, status int64, limit, off
list := make([]*dbstruct.Moment, 0)
col := m.getColMoment()
query := qmgo.M{
"status": status,
"del_flag": 0,
"status": status,
}
err := col.Find(ctx, query).Sort("-ut").Skip(int64(offset)).Limit(int64(limit)).All(&list)
if err == qmgo.ErrNoSuchDocuments {