Skip to content

Commit 0535513

Browse files
committed
fix: added RoomId validation missing minLength constraint
1 parent 63ca1fd commit 0535513

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/meteor/app/api/server/v1/rooms.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ const saveNotificationBodySchema = ajv.compile<{
312312
}>({
313313
type: 'object',
314314
properties: {
315-
roomId: { type: 'string' },
315+
roomId: { type: 'string', minLength: 1 },
316316
notifications: {
317317
type: 'object',
318318
minProperties: 1,

0 commit comments

Comments
 (0)