Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broadcastify Plugin: System ID should be an int #859

Merged
merged 1 commit into from
Nov 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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