fix: restore 'party.' key in customer identification
This commit is contained in:
@@ -172,7 +172,7 @@ class Agent:
|
||||
customer_data = customer_data[0] if customer_data else {}
|
||||
|
||||
if customer_data and customer_data.get("id"):
|
||||
customer_name = customer_data.get("party", {}).get(
|
||||
customer_name = customer_data.get("party.", {}).get(
|
||||
"name", "Cliente Final"
|
||||
)
|
||||
customer_id = customer_data.get("id", 0)
|
||||
|
||||
Reference in New Issue
Block a user