Fixes to data fetching

This commit is contained in:
Jori Lallo
2016-05-20 00:33:52 -07:00
parent d3a1eb2c21
commit 90310703ec
3 changed files with 16 additions and 9 deletions

View File

@@ -1,4 +1,5 @@
var marked = require('marked');
import marked from 'marked';
import Document from './models/Document';
export function presentUser(user) {
@@ -37,6 +38,9 @@ export function presentAtlas(atlas, includeRecentDocuments=false) {
atlasId: atlas.id,
},
limit: 10,
order: [
['updatedAt', 'DESC'],
],
});
let recentDocuments = [];