d87db40c52
* Fixed party member loading * Fixed quest details * Fixed party creating * Fixed challenge habit restore streak permissions * Fixed fetch recent messages for party * Adjusted category box placement for challenges * Fixed zindex for input on group * Changed reset streak restriction and allowed for adjust streak
26 lines
586 B
JavaScript
26 lines
586 B
JavaScript
import { loadAsyncResource } from 'client/libs/asyncResource';
|
|
|
|
export function getMembers (store, forceLoad = false) {
|
|
return loadAsyncResource({
|
|
store,
|
|
path: 'partyMembers',
|
|
url: '/api/v3/groups/party/members?includeAllPublicFields=true',
|
|
deserialize (response) {
|
|
return response.data.data;
|
|
},
|
|
forceLoad,
|
|
});
|
|
}
|
|
|
|
export function getParty (store, forceLoad = false) {
|
|
return loadAsyncResource({
|
|
store,
|
|
path: 'party',
|
|
url: '/api/v3/groups/party',
|
|
deserialize (response) {
|
|
return response.data.data;
|
|
},
|
|
forceLoad,
|
|
});
|
|
}
|