未验证 提交 b4f899b3 编写于 作者: H huanggze

fix: cannot sorting in ascending order

Signed-off-by: Nhuanggze <loganhuang@yunify.com>
上级 78159e96
......@@ -262,6 +262,7 @@ func (h handler) makeQueryOptions(r reqParams, lvl monitoring.Level) (q queryOpt
q.target = r.target
q.page = DefaultPage
q.limit = DefaultLimit
q.order = r.order
if r.order != model.OrderAscending {
q.order = DefaultOrder
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册