Skip to content

Commit 5273718

Browse files
authored
Merge pull request #113 from c-jimenez/fix/change_availability
[changeavailability] Fix tojson() converter
2 parents b9f99f0 + da982b5 commit 5273718

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/messages/ChangeAvailability.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ bool ChangeAvailabilityReqConverter::fromJson(const rapidjson::Value& json,
5757
bool ChangeAvailabilityReqConverter::toJson(const ChangeAvailabilityReq& data, rapidjson::Document& json)
5858
{
5959
fill(json, "connectorId", data.connectorId);
60-
fill(json, "requestedMessage", AvailabilityTypeHelper.toString(data.type));
60+
fill(json, "type", AvailabilityTypeHelper.toString(data.type));
6161
return true;
6262
}
6363

0 commit comments

Comments
 (0)