fix: repair linked panel email during sync

This commit is contained in:
3252a8
2026-05-23 22:27:51 +03:00
parent 60d8c297f9
commit 31eb5c06ad
4 changed files with 291 additions and 9 deletions
+9 -1
View File
@@ -1058,11 +1058,19 @@ async def _sync_panel_identity_for_user(
payload["status"] = "ACTIVE"
try:
await subscription_service.panel_service.update_user_details_on_panel(
updated_panel_user = await subscription_service.panel_service.update_user_details_on_panel(
user.panel_user_uuid,
payload,
log_response=False,
)
if not updated_panel_user or (
isinstance(updated_panel_user, dict) and updated_panel_user.get("error")
):
logger.warning(
"Panel identity update returned no success payload for user %s",
user.user_id,
)
return False
return True
except Exception as exc:
logger.warning(