This commit is contained in:
Alex Holliday
2026-02-20 20:37:29 +00:00
parent 3763b668ed
commit efcf2567b8
2 changed files with 2 additions and 1 deletions
@@ -5,7 +5,7 @@ import { AppError } from "@/utils/AppError.js";
export const createVerifyStatusPageAccess = (statusPagesRepository: IStatusPagesRepository, verifyJWT: RequestHandler) => {
return async (req: Request, res: Response, next: NextFunction) => {
try {
const url = req.params.url;
const url = Array.isArray(req.params.url) ? req.params.url[0] : req.params.url;
if (!url) {
throw new AppError({ message: "Status page URL is required", status: 400 });
}