From 4dae576fc56a8b62c77466dcda43dbcbc48bc01f Mon Sep 17 00:00:00 2001 From: Artem Date: Fri, 3 Apr 2026 17:07:18 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D0=BE=D0=B1=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=BA?= =?UTF-8?q?=D1=83=20=D0=B4=D0=B0=D0=BD=D0=BD=D1=8B=D1=85=20=D1=81=D0=BE?= =?UTF-8?q?=D0=B1=D1=8B=D1=82=D0=B8=D1=8F=20=D1=83=D1=81=D1=82=D1=80=D0=BE?= =?UTF-8?q?=D0=B9=D1=81=D1=82=D0=B2=D0=B0=20=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7?= =?UTF-8?q?=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8F=20=D0=B2=20=D0=BC?= =?UTF-8?q?=D0=B5=D1=82=D0=BE=D0=B4=20extract=5Fuser=5Fhwid=5Fevent=5Fdata?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- remnawave/controllers/webhooks.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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", {})