diff --git a/api/articles.js b/api/articles.js index f190f4e..7983926 100644 --- a/api/articles.js +++ b/api/articles.js @@ -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: {