mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-17 21:34:56 +00:00
use date index
This commit is contained in:
@@ -148,6 +148,10 @@ func (e *Rss) Feed(ctx context.Context, req *pb.FeedRequest, rsp *pb.FeedRespons
|
|||||||
|
|
||||||
// default query all
|
// default query all
|
||||||
q := model.QueryAll()
|
q := model.QueryAll()
|
||||||
|
q.Order = model.Order{
|
||||||
|
Type: model.OrderTypeDesc,
|
||||||
|
FieldName: "date",
|
||||||
|
}
|
||||||
|
|
||||||
// if the need is not nil, then use one url
|
// if the need is not nil, then use one url
|
||||||
if feed != nil {
|
if feed != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user