Performance/inbox paging (#11258)

* merge all changes to one commit of PR #11157 / #11226

* rename the new paged messages route

* rename event, move map-method to the Inbox schema, fix lint

* move `mapMessage`-call to `getUserInbox`

* revert schema.method back to a normal one
This commit is contained in:
negue
2019-07-15 11:25:22 +02:00
committed by Matteo Pagliazzi
parent d28e1708c5
commit c9a56e8f3e
12 changed files with 387 additions and 126 deletions

View File

@@ -6,7 +6,7 @@ describe('GET /inbox/messages', () => {
let user;
let otherUser;
before(async () => {
beforeEach(async () => {
[user, otherUser] = await Promise.all([generateUser(), generateUser()]);
await otherUser.post('/members/send-private-message', {