Skip to content

Commit 307b510

Browse files
committed
Check for specified symbol
1 parent 243d793 commit 307b510

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

broker/patron_request/api/api-handler.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,10 @@ func (a *PatronRequestApiHandler) PutPatronRequestsId(w http.ResponseWriter, r *
525525
api.AddBadRequestError(ctx, w, err)
526526
return
527527
}
528+
if symbol == "" {
529+
api.AddBadRequestError(ctx, w, errors.New("symbol must be specified"))
530+
return
531+
}
528532
logParams["symbol"] = symbol
529533
ctx = common.CreateExtCtxWithArgs(r.Context(), &common.LoggerArgs{Other: logParams})
530534

0 commit comments

Comments
 (0)