From 81dea75eb7f250596a79571d66f9a22d62e60ebe Mon Sep 17 00:00:00 2001 From: Marie Date: Tue, 2 Jan 2024 12:39:47 +0100 Subject: [PATCH] upd: higher character limit for poll options Limited to 150 to account for {}, "" and commas in DB column Closes #297 --- packages/backend/src/server/api/endpoints/notes/create.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/endpoints/notes/create.ts b/packages/backend/src/server/api/endpoints/notes/create.ts index ac0a7f3b51..3fef0e6aa2 100644 --- a/packages/backend/src/server/api/endpoints/notes/create.ts +++ b/packages/backend/src/server/api/endpoints/notes/create.ts @@ -167,7 +167,7 @@ export const paramDef = { uniqueItems: true, minItems: 2, maxItems: 10, - items: { type: 'string', minLength: 1, maxLength: 50 }, + items: { type: 'string', minLength: 1, maxLength: 150 }, }, multiple: { type: 'boolean' }, expiresAt: { type: 'integer', nullable: true },