Skip to content

Commit

Permalink
fix(api/schedule): early exit for empty name (#996)
Browse files Browse the repository at this point in the history
  • Loading branch information
ecrupper authored Oct 30, 2023
1 parent 262d7f0 commit 3ee9ccf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/schedule/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ func CreateSchedule(c *gin.Context) {
// ensure schedule name is defined
if input.GetName() == "" {
util.HandleError(c, http.StatusBadRequest, fmt.Errorf("schedule name must be set"))

return
}

// update engine logger with API metadata
Expand Down

0 comments on commit 3ee9ccf

Please sign in to comment.