Align enum string values with actual State names
This commit is contained in:
@@ -147,9 +147,9 @@ namespace util
|
|||||||
switch (status)
|
switch (status)
|
||||||
{
|
{
|
||||||
case State::ACTIVE:
|
case State::ACTIVE:
|
||||||
return "STARTED";
|
return "ACTIVE";
|
||||||
case State::INACTIVE:
|
case State::INACTIVE:
|
||||||
return "COMPLETED";
|
return "INACTIVE";
|
||||||
}
|
}
|
||||||
throw std::invalid_argument("Invalid State");
|
throw std::invalid_argument("Invalid State");
|
||||||
}
|
}
|
||||||
@@ -160,7 +160,7 @@ namespace util
|
|||||||
{
|
{
|
||||||
return State::ACTIVE;
|
return State::ACTIVE;
|
||||||
}
|
}
|
||||||
if (value == "COMPLETED")
|
if (value == "INACTIVE")
|
||||||
{
|
{
|
||||||
return State::INACTIVE;
|
return State::INACTIVE;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user