Skip to content

Commit

Permalink
Add salts_url to MatchCreatedWebhookPayload and include it in payload…
Browse files Browse the repository at this point in the history
… creation
  • Loading branch information
raimannma committed Jan 12, 2025
1 parent 9c95351 commit f30c86d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions deadlock_data_api/models/webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

class MatchCreatedWebhookPayload(BaseModel):
match_id: int
salts_url: str
metadata_url: str
raw_metadata_url: str

Expand Down
1 change: 1 addition & 0 deletions deadlock_data_api/routers/v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,7 @@ def match_created_event(
print(f"Authenticated with API-Key: {api_key}")
payload = MatchCreatedWebhookPayload(
match_id=match_id,
salts_url=f"https://data.deadlock-api.com/v1/matches/{match_id}/salts",
metadata_url=f"https://data.deadlock-api.com/v1/matches/{match_id}/metadata",
raw_metadata_url=f"https://data.deadlock-api.com/v1/matches/{match_id}/raw-metadata",
)
Expand Down

0 comments on commit f30c86d

Please sign in to comment.