Article history order fix

pull/3/head
Nishant Arora 8 years ago
parent fd71d2c06e
commit dc808af7ad

@ -255,7 +255,7 @@ module.exports = function(app){
*/
Articles.where({id: req.params.id}).fetch({withRelated: [{'archives': function(qb) {
qb.orderBy("created_at","DESC");
qb.orderBy("updated_at","DESC");
}}]}).then(function(article) {
res.status(200).json({
error: {

Loading…
Cancel
Save