Skip to content

Commit

Permalink
Merge pull request #8 from PADAS/activity-logs
Browse files Browse the repository at this point in the history
Add missing decorator for activity logs
  • Loading branch information
marianobrc authored Jun 28, 2024
2 parents b7dda1b + 62f994e commit 96eb5ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/webhooks/handlers.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import json
import pyjq
from app.services.gundi import send_observations_to_gundi, send_events_to_gundi
from app.services.activity_logger import webhook_activity_logger
from .core import GenericJsonPayload, GenericJsonTransformConfig


@webhook_activity_logger
async def webhook_handler(payload: GenericJsonPayload, integration=None, webhook_config: GenericJsonTransformConfig = None):
print(f"Webhook handler executed with integration: {integration}. \nPayload: {payload}. \nConfig: {webhook_config}")
if isinstance(payload, list):
Expand Down

0 comments on commit 96eb5ae

Please sign in to comment.