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