Skip to content

Commit

Permalink
chore: Update webhook validation parameters default values
Browse files Browse the repository at this point in the history
  • Loading branch information
m3nowak committed Sep 14, 2024
1 parent 058f941 commit 70f7313
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rg_app/wha/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@

@get(f"/{LOCAL_WH_URL}")
async def webhook_validation(
verify_token: Annotated[str, Parameter(query="hub.verify_token")],
_: Annotated[str, Parameter(query="hub.mode")],
challenge: Annotated[str, Parameter(query="hub.challenge")],
verify_token: Annotated[str, Parameter(query="hub.verify_token", default="")],
_: Annotated[str, Parameter(query="hub.mode", default="")],
challenge: Annotated[str, Parameter(query="hub.challenge", default="")],
config: Config,
) -> dict[str, str]:
if verify_token != config.verify_token:
Expand Down

0 comments on commit 70f7313

Please sign in to comment.