Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Commit 1c39f79

Browse files
author
Noah Hanjun Lee
authored
Remove the unused payload (#211)
1 parent 0861224 commit 1c39f79

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

internal/server/api/v1/repos/deployment.go

-13
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ type (
2323
Ref string `json:"ref"`
2424
Env string `json:"env"`
2525
}
26-
27-
deploymentPatchPayload struct {
28-
Status string `json:"status"`
29-
}
3026
)
3127

3228
func (r *Repo) ListDeployments(c *gin.Context) {
@@ -157,15 +153,6 @@ func (r *Repo) UpdateDeployment(c *gin.Context) {
157153
number = c.Param("number")
158154
)
159155

160-
p := &deploymentPatchPayload{}
161-
if err := c.ShouldBindBodyWith(p, binding.JSON); err != nil {
162-
gb.ResponseWithError(
163-
c,
164-
e.NewErrorWithMessage(e.ErrorCodeInvalidRequest, "It has failed to bind the payload.", nil),
165-
)
166-
return
167-
}
168-
169156
vu, _ := c.Get(gb.KeyUser)
170157
u := vu.(*ent.User)
171158

0 commit comments

Comments
 (0)