cast to string

This commit is contained in:
Alex Holliday committed 2026-01-27 21:54:20 +00:00
1 parent d48cdaca9c
commit 6efc05879a
5 files changed
+11 -11

No files matched your search

+1 -1
View File
@@ -67,7 +67,7 @@ class IncidentController {
getIncidentById = async (req: Request, res: Response, next: NextFunction) => {
try {
const teamId = requireTeamId(req.user?.teamId);
const incidentId = req.params.incidentId;
const incidentId = req.params.incidentId as string;
if (!incidentId) {
throw new AppError({ message: "Incident ID is required", service: SERVICE_NAME, status: 400 });
}