Send questInvited webhook to the inviter too (#13111)

This commit is contained in:
Carl Vuorinen
2021-04-29 22:34:17 +03:00
committed by GitHub
parent fea39e7c9b
commit 1d3cf368a1
2 changed files with 31 additions and 0 deletions

View File

@@ -149,6 +149,13 @@ api.inviteToQuest = {
{ name: 'PARTY_URL', content: '/party' },
]);
// Send webhook to the inviter too
questActivityWebhook.send(user, {
type: 'questInvited',
group,
quest,
});
// track that the inviting user has accepted the quest
analytics.track('quest', {
category: 'behavior',