Skip to content

Commit cf3909c

Browse files
committed
fix(meetings): allow editing summary to empty string
Change validation to check if fields exist rather than if they're truthy, allowing users to clear summary content by editing to an empty string. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: Andres Tobon <andrest2455@gmail.com>
1 parent 04e720a commit cf3909c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/lfx-one/src/server/controllers/past-meeting.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ export class PastMeetingController {
284284
const body = req.body as UpdatePastMeetingSummaryRequest;
285285

286286
// Validate request body - at least one field must be provided
287-
if (!body.edited_content && body.approved === undefined) {
287+
if (!('edited_content' in body) && !('approved' in body)) {
288288
res.status(400).json({
289289
error: 'Bad Request',
290290
message: 'Either edited_content or approved must be provided',

0 commit comments

Comments
 (0)