Skip to content

Commit 5036d08

Browse files
committed
fix(bulker): if bulker mode not provided - assume 'batch'
1 parent d895226 commit 5036d08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bulkerapp/app/router.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ func (r *Router) EventsHandler(c *gin.Context) {
142142
rError = r.ResponseError(c, http.StatusNotFound, "destination not found", false, fmt.Errorf("destination not found: %s", destinationId), true, true, false)
143143
return
144144
}
145-
mode = utils.DefaultString(modeOverride, string(destination.Mode()))
145+
mode = utils.NvlString(modeOverride, string(destination.Mode()), string(bulker.Batch))
146146
if mode != string(bulker.Batch) && mode != string(bulker.Stream) {
147147
rError = r.ResponseError(c, http.StatusBadRequest, "invalid bulker mode", false, fmt.Errorf("invalid bulker mode: %s", mode), true, true, false)
148148
return

0 commit comments

Comments
 (0)