From b3d91170662accdd48cdfc42ca2180521b096669 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 12 Aug 2024 01:56:57 +0900 Subject: refactor: rename verification_steps for consistant naming --- backend/api/handler.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'backend/api/handler.go') 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, -- cgit v1.2.3-70-g09d2