Fix review comments

This commit is contained in:
Jissin Mathew
2026-06-01 12:17:35 +05:30
committed by Joel Thomas
parent 2ea77bf9b6
commit 70ec47df04
4 changed files with 27 additions and 29 deletions
@@ -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");
}