mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-15 05:37:22 +01:00
fix: return full inbox on user-v3-api (#12146)
* fix inbox on user-v3-api + test * add @benkelaar suggestions
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user