From da982b568e795f6cdb1ff6a9ba4f117cc79e976b Mon Sep 17 00:00:00 2001 From: c-jimenez <18682655+c-jimenez@users.noreply.github.com> Date: Wed, 15 Feb 2023 08:45:14 +0100 Subject: [PATCH] [changeavailability] Fix tojson() converter --- src/messages/ChangeAvailability.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/messages/ChangeAvailability.cpp b/src/messages/ChangeAvailability.cpp index 114f4580..2010c7de 100644 --- a/src/messages/ChangeAvailability.cpp +++ b/src/messages/ChangeAvailability.cpp @@ -57,7 +57,7 @@ bool ChangeAvailabilityReqConverter::fromJson(const rapidjson::Value& json, bool ChangeAvailabilityReqConverter::toJson(const ChangeAvailabilityReq& data, rapidjson::Document& json) { fill(json, "connectorId", data.connectorId); - fill(json, "requestedMessage", AvailabilityTypeHelper.toString(data.type)); + fill(json, "type", AvailabilityTypeHelper.toString(data.type)); return true; }