From ff133f373c65082167928c1e4041f4726da7243b Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 6 Jul 2017 22:20:24 -0700 Subject: [PATCH] Remove recentDocuments from default collections list response --- server/api/collections.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/api/collections.js b/server/api/collections.js index 1872fd6c8..2b48f40fb 100644 --- a/server/api/collections.js +++ b/server/api/collections.js @@ -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, },