Skip to content

Commit

Permalink
[Improve][RestAPI] always return jobId when call getJobInfoById API
Browse files Browse the repository at this point in the history
  • Loading branch information
liunaijie committed Feb 29, 2024
1 parent 9009b2a commit f13d2c3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ private void handleJobInfoById(HttpGetCommand command, String uri) {
if (!jobId.isEmpty() && jobInfo != null) {
this.prepareResponse(command, convertToJson(jobInfo, Long.parseLong(jobId)));
} else {
this.prepareResponse(command, new JsonObject());
this.prepareResponse(command, new JsonObject().add(RestConstant.JOB_ID, jobId));
}
}

Expand Down

0 comments on commit f13d2c3

Please sign in to comment.