Fix review comments
This commit is contained in:
@@ -37,7 +37,7 @@ namespace util
|
||||
PENDING,
|
||||
STARTED,
|
||||
COMPLETED,
|
||||
INPROGRESS,
|
||||
IN_PROGRESS,
|
||||
CANCELLED
|
||||
};
|
||||
|
||||
@@ -210,8 +210,8 @@ namespace util
|
||||
return "COMPLETED";
|
||||
case ServiceJobStatus::CANCELLED:
|
||||
return "CANCELLED";
|
||||
case ServiceJobStatus::INPROGRESS:
|
||||
return "INPROGRESS";
|
||||
case ServiceJobStatus::IN_PROGRESS:
|
||||
return "IN_PROGRESS";
|
||||
}
|
||||
throw std::invalid_argument("Invalid ServiceJobStatus");
|
||||
}
|
||||
@@ -244,9 +244,9 @@ namespace util
|
||||
{
|
||||
return ServiceJobStatus::CANCELLED;
|
||||
}
|
||||
if (value == "INPROGRESS")
|
||||
if (value == "IN_PROGRESS")
|
||||
{
|
||||
return ServiceJobStatus::INPROGRESS;
|
||||
return ServiceJobStatus::IN_PROGRESS;
|
||||
}
|
||||
throw std::invalid_argument("Invalid ServiceJobStatus string");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user