cast to string
This commit is contained in:
1 parent
d48cdaca9c
commit
6efc05879a
5 files changed
+11
-11
No files matched your search
@@ -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 });
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user