Skip to content

Commit

Permalink
Broadcastify Plugin: System ID should be an int (#859)
Browse files Browse the repository at this point in the history
See #858
  • Loading branch information
james-coder authored Nov 12, 2023
1 parent 6d81c49 commit 0135d74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/broadcastify_uploader/broadcastify_uploader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

struct Broadcastify_System_Key {
std::string api_key;
std::string system_id;
int system_id;
std::string short_name;
};

Expand Down Expand Up @@ -41,7 +41,7 @@ class Broadcastify_Uploader : public Plugin_Api {
for (std::vector<Broadcastify_System_Key>::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 "";
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 0135d74

Please sign in to comment.