diff --git a/packages/backend/src/server/api/endpoints/notes/create.ts b/packages/backend/src/server/api/endpoints/notes/create.ts index e63dc6f20b..29a0f7418c 100644 --- a/packages/backend/src/server/api/endpoints/notes/create.ts +++ b/packages/backend/src/server/api/endpoints/notes/create.ts @@ -191,7 +191,7 @@ export const paramDef = { then: { properties: { text: { - type: ['string', 'null'], + type: 'string', minLength: 1, maxLength: MAX_NOTE_TEXT_LENGTH, pattern: '[^\\s]+',