Skip to content

Commit e58ad4c

Browse files
committed
fix: Service serialization
1 parent 24562c4 commit e58ad4c

File tree

1 file changed

+5
-1
lines changed
  • src/main/kotlin/spp/protocol/platform/general

1 file changed

+5
-1
lines changed

src/main/kotlin/spp/protocol/platform/general/Service.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ data class Service(
4949
json.getString("group"),
5050
json.getString("shortName"),
5151
json.getJsonArray("layers").map { it as String },
52-
json.getBoolean("normal")
52+
json.getBoolean("normal"),
53+
json.getString("environment"),
54+
json.getString("commitId")
5355
)
5456

5557
fun toJson(): JsonObject {
@@ -59,6 +61,8 @@ data class Service(
5961
json.put("shortName", shortName)
6062
json.put("layers", layers)
6163
json.put("normal", normal)
64+
json.put("environment", environment)
65+
json.put("commitId", commitId)
6266
return json
6367
}
6468

0 commit comments

Comments
 (0)