From 9197815a535d8d77f9b54bf27e6cbc87c9b67e2e Mon Sep 17 00:00:00 2001 From: ecrupper Date: Mon, 30 Oct 2023 10:13:32 -0500 Subject: [PATCH] fix(api/schedule): early exit for empty name --- api/schedule/create.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/schedule/create.go b/api/schedule/create.go index 0becfccfe..88df46a75 100644 --- a/api/schedule/create.go +++ b/api/schedule/create.go @@ -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