Remove recentDocuments from default collections list response

This commit is contained in:
Tom Moor
2017-07-06 22:20:24 -07:00
parent c618b956d2
commit ff133f373c

View File

@@ -49,7 +49,7 @@ router.post('collections.info', auth(), async ctx => {
router.post('collections.list', auth(), pagination(), async ctx => {
const user = ctx.state.user;
const collections = await Collection.scope('withRecentDocuments').findAll({
const collections = await Collection.findAll({
where: {
teamId: user.teamId,
},