fix: return full inbox on user-v3-api (#12146)

* fix inbox on user-v3-api + test

* add @benkelaar suggestions
This commit is contained in:
negue
2020-05-02 21:48:16 +02:00
committed by GitHub
parent 26767f598b
commit 1c94c1a968
4 changed files with 28 additions and 3 deletions

View File

@@ -34,7 +34,10 @@ export async function sentMessage (sender, receiver, message, translate) {
const PM_PER_PAGE = 10;
const getUserInboxDefaultOptions = {
asArray: true, page: 0, conversation: null, mapProps: false,
asArray: true,
page: undefined,
conversation: null,
mapProps: false,
};
export async function getUserInbox (user, optionParams = getUserInboxDefaultOptions) {