Skip to content

Commit cf547bb

Browse files
committed
update
1 parent bc3a467 commit cf547bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routers/web/repo/actions/view.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ func Cancel(ctx *context_module.Context) {
561561
job := updatedjobs[0]
562562
actions_service.NotifyWorkflowRunStatusUpdateWithReload(ctx, job)
563563
}
564-
ctx.JSON(http.StatusOK, struct{}{})
564+
ctx.JSONOK()
565565
}
566566

567567
func Approve(ctx *context_module.Context) {
@@ -612,7 +612,7 @@ func Approve(ctx *context_module.Context) {
612612
notify_service.WorkflowJobStatusUpdate(ctx, job.Run.Repo, job.Run.TriggerUser, job, nil)
613613
}
614614

615-
ctx.JSON(http.StatusOK, struct{}{})
615+
ctx.JSONOK()
616616
}
617617

618618
func Delete(ctx *context_module.Context) {

0 commit comments

Comments
 (0)