From 4295abfd48ad8ce217b251d07102deb8aee413d5 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 7 Aug 2024 22:52:44 +0900 Subject: refactor: rename task result's "result" to "status" for consistency --- worker/models.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'worker/models.go') diff --git a/worker/models.go b/worker/models.go index b838fe0..a7310bd 100644 --- a/worker/models.go +++ b/worker/models.go @@ -33,7 +33,7 @@ func (req *swiftCompileRequestData) validate() error { } type swiftCompileResponseData struct { - Result string `json:"result"` + Status string `json:"status"` Stdout string `json:"stdout"` Stderr string `json:"stderr"` } @@ -44,7 +44,7 @@ type wasmCompileRequestData struct { } type wasmCompileResponseData struct { - Result string `json:"result"` + Status string `json:"status"` Stdout string `json:"stdout"` Stderr string `json:"stderr"` } @@ -78,7 +78,7 @@ func (req *testRunRequestData) validate() error { } type testRunResponseData struct { - Result string `json:"result"` + Status string `json:"status"` Stdout string `json:"stdout"` Stderr string `json:"stderr"` } -- cgit v1.2.3-70-g09d2