mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-12 03:05:14 +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
|
||||
q := model.QueryAll()
|
||||
q.Index.FieldName = "date"
|
||||
q.Index.FieldName = "Date"
|
||||
q.Order = model.Order{
|
||||
Type: model.OrderTypeDesc,
|
||||
FieldName: "date",
|
||||
FieldName: "Date",
|
||||
}
|
||||
|
||||
// if the need is not nil, then use one url
|
||||
|
||||
Reference in New Issue
Block a user