fix(client): send multiple_choice from the desktop poll form

This commit is contained in:
jubnl
2026-07-27 00:27:12 +02:00
parent 07b8f1234c
commit a8d6663dc7
3 changed files with 9 additions and 7 deletions
@@ -97,8 +97,8 @@ export default function MCollabPolls({ planner }: MCollabPollsProps) {
const res = (await collabApi.createPoll(tripId, {
question: data.question,
options: data.options,
// Server reads `data.multiple || data.multiple_choice` (collabService.ts) —
// both are sent so either shape lands correctly.
// Server reads `data.multiple || data.multiple_choice`
// (nest/collab/collab.service.ts) — both are sent so either shape lands.
multiple: data.multipleChoice,
multiple_choice: data.multipleChoice,
deadline: data.deadline || undefined,