Completely change how the goals webhook works

This commit is contained in:
zkldi
2022-03-21 21:13:20 +00:00
parent d42f67cf68
commit a5d475946b
2 changed files with 9 additions and 7 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "tachi-common",
"version": "0.6.12",
"version": "0.7.0",
"description": "Common Types & Utilities for Tachi",
"main": "js/index.js",
"files": [
+8 -6
View File
@@ -21,14 +21,16 @@ export interface WebhookEventClassUpdateV1 {
* An event fired when a goal is achieved.
*/
export interface WebhookEventGoalAchievedV1 {
type: "goal-achieved/v1";
type: "goals-achieved/v1";
content: {
userID: integer;
goalID: string;
old: GoalImportStat;
new: GoalImportStat;
game: Game;
playtype: Playtypes[Game];
goals: {
goalID: string;
old: GoalImportStat;
new: GoalImportStat;
game: Game;
playtype: Playtypes[Game];
}[];
};
}