aee21edd5f
* Began adding tavern and party * Fixed routing conflicts and tavern constant * Updated button styles * Added not on quest block * Added no challenge block * Began adding quest details * Began updating group create modal to have party info * Added create party modal * Added share userid menu * Began adding toggle * Finished toggle styles * Added start quest modal * Ported over party ctrl code * Finished porting over party ctrl code * Added more quest actions * Added own quests modal and quest modal details * Fixed member modal styles and icons * Added many random style updates * Small text align fix * Removed extra update * Removed config and extra key * Removed client string extras
17 lines
420 B
JavaScript
17 lines
420 B
JavaScript
import axios from 'axios';
|
|
// export async function initQuest (store) {
|
|
// }
|
|
|
|
export async function sendAction (store, payload) {
|
|
// Analytics.updateUser({
|
|
// partyID: party._id,
|
|
// partySize: party.memberCount
|
|
// });
|
|
let response = await axios.post(`/api/v3/groups/${payload.groupId}/${payload.action}`);
|
|
|
|
// @TODO: Update user?
|
|
// User.sync();
|
|
|
|
return response.data.quest || response.data.data;
|
|
}
|