From 161a8e713bdf96bde276abe1e74a256c2b060985 Mon Sep 17 00:00:00 2001 From: PixieDust Date: Mon, 30 Dec 2024 14:05:23 +0000 Subject: [PATCH] update builder_web Make json fileds uniform --- lib/builder_web.ml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/builder_web.ml b/lib/builder_web.ml index e33ca5c..d4d3b36 100644 --- a/lib/builder_web.ml +++ b/lib/builder_web.ml @@ -621,7 +621,7 @@ let routes ~datadir ~cachedir ~configdir ~expired_jobs = let json_response = `Assoc [ "left", `Assoc [ - "job_name", `String job_left; + "job", `String job_left; "uuid", `String (Uuidm.to_string build_left.uuid); "platform", `String build_left.platform; "start_time", `String (Ptime.to_rfc3339 build_left.start); @@ -630,8 +630,8 @@ let routes ~datadir ~cachedir ~configdir ~expired_jobs = "main_binary_size", file_size_json build_left_file_size; ]; "right", `Assoc [ - "job_name", `String job_right; - "build", `String (Uuidm.to_string build_right.uuid); + "job", `String job_right; + "uuid", `String (Uuidm.to_string build_right.uuid); "platform", `String build_right.platform; "start_time", `String (Ptime.to_rfc3339 build_right.start); "finish_time", `String (Ptime.to_rfc3339 build_right.finish);