Align enum string values with actual State names
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user