fix(feishu): restore assistant creation and pairing recovery
Refs NAN-239
This commit is contained in:
1 parent
cfb0f51e78
commit
2aa98677c6
36 files changed
+369
-47
No files matched your search
@@ -395,6 +395,7 @@ def pairing_payload(
|
||||
for item in list_pending():
|
||||
expires_at = float(item.get("expires_at", 0) or 0)
|
||||
created_at = float(item.get("created_at", 0) or 0)
|
||||
delivery_status = item.get("delivery_status")
|
||||
requests.append(
|
||||
{
|
||||
"code": str(item.get("code", "")),
|
||||
@@ -405,6 +406,12 @@ def pairing_payload(
|
||||
"expires_in_seconds": (
|
||||
max(0, int(expires_at - current_time)) if expires_at else None
|
||||
),
|
||||
**(
|
||||
{"delivery_status": delivery_status}
|
||||
if isinstance(delivery_status, str)
|
||||
and delivery_status in {"sending", "sent", "failed"}
|
||||
else {}
|
||||
),
|
||||
}
|
||||
)
|
||||
payload: dict[str, Any] = {"requests": requests}
|
||||
|
||||
Reference in new issue
Block a user