Fixed return string of final result().

This commit is contained in:
Gerhard Hoffmann 2023-08-30 11:41:23 +02:00
parent 0a28f0d82c
commit 7e4b5006eb

View File

@ -829,7 +829,7 @@ QString IsmasClient::updateOfPSAActivated(QString const &version) { // sent ev
} }
QString IsmasClient::updateOfPSASucceeded(QString const &version) { QString IsmasClient::updateOfPSASucceeded(QString const &version) {
m_progressInPercent = 0; m_progressInPercent = 100;
return updateNewsToIsmas("U0001", return updateNewsToIsmas("U0001",
m_progressInPercent, m_progressInPercent,
RESULT_CODE::SUCCESS, RESULT_CODE::SUCCESS,
@ -857,13 +857,13 @@ QString IsmasClient::jsonParseFailed(int resultCode, QString reason, QString con
} }
std::optional<QString> IsmasClient::finalResult(int resultCode, QString reason, QString const &version) { std::optional<QString> IsmasClient::finalResult(int resultCode, QString reason, QString const &version) {
m_progressInPercent = 0; m_progressInPercent = 100;
if (resultCode == RESULT_CODE::SUCCESS) { if (resultCode == RESULT_CODE::SUCCESS) {
return updateNewsToIsmas("U0002", return updateNewsToIsmas("U0002",
m_progressInPercent, m_progressInPercent,
RESULT_CODE::SUCCESS, resultCode,
"FINAL-UPDATE-RESULT", "FINAL-UPDATE-RESULT",
"(re-)set WAIT state", reason.toStdString().c_str(),
version.toStdString().c_str()); version.toStdString().c_str());
} }
if (resultCode == RESULT_CODE::INSTALL_ERROR) { if (resultCode == RESULT_CODE::INSTALL_ERROR) {