From 0135d7423e1baa00edd059ff1c3b8ff3b9e65e64 Mon Sep 17 00:00:00 2001 From: James <13262021+james-coder@users.noreply.github.com> Date: Sun, 12 Nov 2023 06:45:53 -0700 Subject: [PATCH] Broadcastify Plugin: System ID should be an int (#859) See https://github.com/robotastic/trunk-recorder/issues/858 --- plugins/broadcastify_uploader/broadcastify_uploader.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/broadcastify_uploader/broadcastify_uploader.cc b/plugins/broadcastify_uploader/broadcastify_uploader.cc index 7bf07aee7..0cd519815 100644 --- a/plugins/broadcastify_uploader/broadcastify_uploader.cc +++ b/plugins/broadcastify_uploader/broadcastify_uploader.cc @@ -11,7 +11,7 @@ struct Broadcastify_System_Key { std::string api_key; - std::string system_id; + int system_id; std::string short_name; }; @@ -41,7 +41,7 @@ class Broadcastify_Uploader : public Plugin_Api { for (std::vector::iterator it = data.keys.begin(); it != data.keys.end(); ++it) { Broadcastify_System_Key key = *it; if (key.short_name == short_name) { - return key.system_id; + return std::to_string(key.system_id); // Convert int to string for return } } return ""; @@ -351,7 +351,7 @@ class Broadcastify_Uploader : public Plugin_Api { if (broadcastify_exists) { Broadcastify_System_Key key; key.api_key = element.value("broadcastifyApiKey", ""); - key.system_id = element.value("broadcastifySystemId", ""); + key.system_id = element.value("broadcastifySystemId", 0); key.short_name = element.value("shortName", ""); BOOST_LOG_TRIVIAL(info) << "Uploading calls for: " << key.short_name; this->data.keys.push_back(key);