Fix document missing on docify

This commit is contained in:
lxsang
2020-12-05 11:09:52 +00:00
parent 38b1665a8b
commit 6eb9400e69
10 changed files with 21 additions and 11 deletions

View File

@ -157,7 +157,7 @@ class Docify extends this.OS.application.BaseApplication
@initialize()
update_doclist: (cid) ->
@exec("select",{table: "docs", cond:"cid = #{cid}"})
@exec("select",{table: "docs", cond:"cid = #{cid} ORDER BY year DESC, month DESC, day DESC"})
.then (d) =>
return @error d.error if d.error
v.text = v.name for v in d.result