From 28cb2aeacdb17c1ebf2fd3db417564e238d426c1 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Thu, 23 Apr 2026 10:01:46 -0700 Subject: [PATCH] fix comment type --- server/src/controllers/incidentController.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/controllers/incidentController.ts b/server/src/controllers/incidentController.ts index f12327541..730ab7558 100644 --- a/server/src/controllers/incidentController.ts +++ b/server/src/controllers/incidentController.ts @@ -90,7 +90,8 @@ class IncidentController implements IIncidentController { throw new AppError({ message: "Incident ID is required", service: SERVICE_NAME, status: 400 }); } - const resolvedIncident = await this.incidentService.resolveIncident(incidentId, userId, teamId, req?.body?.comment, userEmail); + const comment = Array.isArray(req.body.comment) ? req.body.comment[0] : req.body.comment; + const resolvedIncident = await this.incidentService.resolveIncident(incidentId, userId, teamId, comment, userEmail); return res.status(200).json({ success: true,