Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added quest cancel route and initial tests #6654

Conversation

TheHollidayInn
Copy link
Contributor

Here is the quest cancel route and initial tests for #6509 .

I'm unsure about the return object, and we have started a discussion in Slack as to whether or not we should verify that a user is a group or quest leader before cancelling.

@TheHollidayInn
Copy link
Contributor Author

Eh, don't review this yet. I have a few updates.

@TheHollidayInn
Copy link
Contributor Author

Okay, updated!


if (group.quest.active) throw new NotAuthorized(res.t('cantCancelActiveQuest'));

group.quest = {key: null, progress: {}, leader: null, members: {}};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we may want a group.resetQuestObject method

@paglias
Copy link
Contributor

paglias commented Feb 11, 2016

Updated version #6694

@paglias paglias closed this Feb 11, 2016
@paglias paglias mentioned this pull request Feb 11, 2016
@TheHollidayInn TheHollidayInn deleted the api-v3-quests-cancel branch April 16, 2018 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants