fix comment type

This commit is contained in:
Alex Holliday committed 2026-04-23 10:01:46 -07:00
1 parent cbd82e29af
commit 28cb2aeacd
1 file changed
+2 -1
+2 -1
View File
@@ -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,