performance: private messages - API (#11077)

* paging for inbox

* clean up
This commit is contained in:
negue
2019-03-31 20:52:53 +02:00
committed by Matteo Pagliazzi
parent f35ef3a046
commit 0b82722d27
6 changed files with 45 additions and 12 deletions

View File

@@ -95,7 +95,7 @@ async function _getUserDataForExport (user, xmlMode = false) {
userId: user._id,
}).exec(),
inboxLib.getUserInbox(user, false),
inboxLib.getUserInbox(user, { asArray: false }),
]);
userData.inbox.messages = messages;