From 0182cb46fdd3dd7c350895ac8c0bc37d8f562e04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D1=80=D0=B5=D0=BF=D0=BE=D0=B4=D0=BE=D0=B1=D0=BD?= =?UTF-8?q?=D1=8B=D0=B9=20=D0=90=D0=BB=D0=B5=D0=BD?= Date: Tue, 25 Mar 2025 17:46:08 +0300 Subject: [PATCH] Fixed bug. --- src/modules/Workers/WebSocket/WebSocket.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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())