by Robin at 20241225

This commit is contained in:
Robin 2024-12-25 13:01:23 +08:00
parent 5db69591df
commit 73d3b45ac9
1 changed files with 1 additions and 1 deletions

View File

@ -1802,7 +1802,7 @@ func (m *Mongo) GetMomentListByIds(ctx *gin.Context, momentIds []int64) ([]*dbst
err := col.Find(ctx, query).Sort("_id").All(&list)
if err == qmgo.ErrNoSuchDocuments {
err = nil
return list, err
return make([]*dbstruct.Moment, 0), err
}
return list, err
}