diff --git a/packages/backend/src/server/api/endpoints/notes/create.ts b/packages/backend/src/server/api/endpoints/notes/create.ts index 2eb498c716..2848cd7df1 100644 --- a/packages/backend/src/server/api/endpoints/notes/create.ts +++ b/packages/backend/src/server/api/endpoints/notes/create.ts @@ -146,30 +146,10 @@ export const paramDef = { }, // (re)note with text, files and poll are optional anyOf: [ - { - properties: { - text: { type: 'string' }, - }, - required: ['text'], - }, - { - properties: { - fileIds: { type: 'array' }, - }, - required: ['fileIds'], - }, - { - properties: { - mediaIds: { type: 'array' }, - }, - required: ['mediaIds'], - }, - { - properties: { - poll: { type: 'object' }, - }, - required: ['poll'], - }, + { required: ['text'] }, + { required: ['fileIds'] }, + { required: ['mediaIds'] }, + { required: ['poll'] }, ], } as const;