This commit is contained in:
Tom Moor
2019-04-18 18:51:16 -07:00
parent f491029c21
commit 56a6db7d2a
6 changed files with 11 additions and 14 deletions

View File

@ -22,11 +22,9 @@ router.post('integrations.list', auth(), pagination(), async ctx => {
limit: ctx.state.pagination.limit,
});
const data = await Promise.all(integrations.map(presentIntegration));
ctx.body = {
pagination: ctx.state.pagination,
data,
data: integrations.map(presentIntegration),
};
});