bios: Update bios_active version after code update

When BIOS is updated, update the bios_active's version so that it shows
the expected version, otherwise it shows the version before the update.

The new uploaded version is not deleted in this commit.

Signed-off-by: Lei YU <yulei.sh@bytedance.com>
Change-Id: I93ea834411ae48054d6514517d6e57a4d69e4b92
diff --git a/activation.cpp b/activation.cpp
index f270504..5490cd9 100644
--- a/activation.cpp
+++ b/activation.cpp
@@ -429,6 +429,8 @@
             activation(softwareServer::Activation::Activations::Active);
 
             log<level::INFO>("Bios upgrade completed successfully.");
+            parent.biosVersion->version(
+                parent.versions.find(versionId)->second->version());
         }
         else if (newStateResult == "failed")
         {
diff --git a/item_updater.hpp b/item_updater.hpp
index b2185b9..b18e4bd 100644
--- a/item_updater.hpp
+++ b/item_updater.hpp
@@ -269,6 +269,7 @@
     /** @brief Persistent Activation D-Bus object for BIOS */
     std::unique_ptr<Activation> biosActivation;
 
+  public:
     /** @brief Persistent Version D-Bus object for BIOS */
     std::unique_ptr<VersionClass> biosVersion;
 #endif