Align enum string values with actual State names

This commit is contained in:
Jissin Mathew
2026-05-22 17:12:47 +05:30
parent 388e459a5a
commit 014d4eaa0d
@@ -147,9 +147,9 @@ namespace util
switch (status)
{
case State::ACTIVE:
return "STARTED";
return "ACTIVE";
case State::INACTIVE:
return "COMPLETED";
return "INACTIVE";
}
throw std::invalid_argument("Invalid State");
}
@@ -160,7 +160,7 @@ namespace util
{
return State::ACTIVE;
}
if (value == "COMPLETED")
if (value == "INACTIVE")
{
return State::INACTIVE;
}