diff --git a/pyproject.toml b/pyproject.toml index 69b3fdb..57b4af1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "remnawave" -version = "2.7.0" -description = "A Python SDK for interacting with the Remnawave API v2.7.0." +version = "2.7.1" +description = "A Python SDK for interacting with the Remnawave API v2.7.1." authors = [ {name = "Artem",email = "dev@forestsnet.com"} ] diff --git a/remnawave/controllers/webhooks.py b/remnawave/controllers/webhooks.py index ecc9951..c6521eb 100644 --- a/remnawave/controllers/webhooks.py +++ b/remnawave/controllers/webhooks.py @@ -167,7 +167,10 @@ class WebhookUtility: """ if not WebhookUtility.is_user_hwid_devices_event(payload.event): return None - + + if isinstance(payload.data, UserHwidDeviceEventDto): + return (payload.data.user, payload.data.hwid_user_device) + if isinstance(payload.data, dict): user_data = payload.data.get("user", {}) hwid_data = payload.data.get("hwidUserDevice", {})