Update webhook events to fire game and playtype

This commit is contained in:
zkldi
2021-11-06 19:56:12 +00:00
parent 25c0589db3
commit 31da82ed57
6 changed files with 27 additions and 6 deletions
+3 -1
View File
@@ -72,7 +72,7 @@ export async function UpdateClassIfGreater(
if (isGreater === null) {
EmitWebhookEvent({
type: "class-update/v1",
content: { userID, new: classVal, old: null, set: classSet },
content: { userID, new: classVal, old: null, set: classSet, game, playtype },
});
return null;
@@ -84,6 +84,8 @@ export async function UpdateClassIfGreater(
new: classVal,
old: userGameStats!.classes[classSet]!,
set: classSet,
game,
playtype,
},
});