mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-19 22:15:24 +00:00
use date index
This commit is contained in:
@@ -148,10 +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.Index.FieldName = "date"
|
q.Index.FieldName = "Date"
|
||||||
q.Order = model.Order{
|
q.Order = model.Order{
|
||||||
Type: model.OrderTypeDesc,
|
Type: model.OrderTypeDesc,
|
||||||
FieldName: "date",
|
FieldName: "Date",
|
||||||
}
|
}
|
||||||
|
|
||||||
// if the need is not nil, then use one url
|
// if the need is not nil, then use one url
|
||||||
|
|||||||
Reference in New Issue
Block a user