aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/api/handler.go
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-12 01:56:57 +0900
committernsfisis <nsfisis@gmail.com>2024-08-12 01:56:57 +0900
commitb3d91170662accdd48cdfc42ca2180521b096669 (patch)
treea164c5ea9bdcdaaacba6cc0f756e6334c777e549 /backend/api/handler.go
parentab6abc3a7619be89dda1bc3ab0b3f19ff69b575f (diff)
downloadphperkaigi-2025-albatross-b3d91170662accdd48cdfc42ca2180521b096669.tar.gz
phperkaigi-2025-albatross-b3d91170662accdd48cdfc42ca2180521b096669.tar.zst
phperkaigi-2025-albatross-b3d91170662accdd48cdfc42ca2180521b096669.zip
refactor: rename verification_steps for consistant naming
Diffstat (limited to 'backend/api/handler.go')
-rw-r--r--backend/api/handler.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/backend/api/handler.go b/backend/api/handler.go
index 4150ba6..7ef77e5 100644
--- a/backend/api/handler.go
+++ b/backend/api/handler.go
@@ -146,12 +146,12 @@ func (h *Handler) GetGame(ctx context.Context, request GetGameRequestObject, use
if err != nil {
return nil, echo.NewHTTPError(http.StatusInternalServerError, err.Error())
}
- verificationSteps := make([]VerificationStep, len(testcaseIDs)+1)
- verificationSteps[0] = VerificationStep{
+ execSteps := make([]ExecStep, len(testcaseIDs)+1)
+ execSteps[0] = ExecStep{
Label: "Compile",
}
for i, testcaseID := range testcaseIDs {
- verificationSteps[i+1] = VerificationStep{
+ execSteps[i+1] = ExecStep{
TestcaseID: nullable.NewNullableWithValue(int(testcaseID)),
Label: fmt.Sprintf("Testcase %d", i+1),
}
@@ -168,8 +168,8 @@ func (h *Handler) GetGame(ctx context.Context, request GetGameRequestObject, use
Title: row.Title,
Description: row.Description,
},
- Players: players,
- VerificationSteps: verificationSteps,
+ Players: players,
+ ExecSteps: execSteps,
}
return GetGame200JSONResponse{
Game: game,