Files
habitica/website/client/store/actions/party.js
T
Keith Holliday d87db40c52 Staging fixes (#9804)
* 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
2018-01-15 10:21:08 -07:00

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,
});
}