修正工单排序

This commit is contained in:
jysperm
2014-04-27 03:35:16 +08:00
parent 7ef04bae89
commit 3d4505c7a4

View File

@@ -13,7 +13,10 @@ module.exports =
list: api.accountAuthenticateRender (req, res, account, renderer) ->
mTicket.find
account_id: account._id
, {}, (tickets) ->
,
sort:
updated_at: -1
, (tickets) ->
renderer 'ticket/list',
tickets: tickets