Skip to content

Commit cef0d74

Browse files
committed
fix max server side validation logic
1 parent 5b37da3 commit cef0d74

File tree

1 file changed

+1
-1
lines changed
  • x-pack/platform/plugins/shared/streams/server/lib/streams

1 file changed

+1
-1
lines changed

x-pack/platform/plugins/shared/streams/server/lib/streams/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ export class StreamsClient {
329329
throw new StatusError('Stream name must not be empty.', 400);
330330
}
331331

332-
if (name.length >= MAX_STREAM_NAME_LENGTH) {
332+
if (name.length > MAX_STREAM_NAME_LENGTH) {
333333
throw new StatusError(
334334
`Stream name cannot be longer than ${MAX_STREAM_NAME_LENGTH} characters.`,
335335
400

0 commit comments

Comments
 (0)