diff --git a/src/modules/Workers/WebSocket/WebSocket.cpp b/src/modules/Workers/WebSocket/WebSocket.cpp index 24001d1..9fc6008 100644 --- a/src/modules/Workers/WebSocket/WebSocket.cpp +++ b/src/modules/Workers/WebSocket/WebSocket.cpp @@ -754,7 +754,7 @@ namespace Apostol { Customer["address"] = formCustomerAddress.c_str(); - if (!formSellerRating.IsEmpty()) + if (!formCustomerRating.IsEmpty()) Customer["rating"] = formCustomerRating.c_str(); if (!formCustomerSignature.IsEmpty()) @@ -854,13 +854,19 @@ namespace Apostol { if (!formSellerRating.IsEmpty()) Seller["rating"] = formSellerRating.c_str(); + if (!formSellerSignature.IsEmpty()) + Seller["signature"] = formSellerSignature.c_str(); + YAML::Node Customer = Deal["customer"]; Customer["address"] = formCustomerAddress.c_str(); - if (!formSellerRating.IsEmpty()) + if (!formCustomerRating.IsEmpty()) Customer["rating"] = formCustomerRating.c_str(); + if (!formCustomerSignature.IsEmpty()) + Customer["signature"] = formCustomerSignature.c_str(); + YAML::Node Payment = Deal["payment"]; if (!formPaymentAddress.IsEmpty())