diff --git a/packages/backend/src/routes/pdfRoutes.tsx b/packages/backend/src/routes/pdfRoutes.tsx index d9c1a49..29ed300 100644 --- a/packages/backend/src/routes/pdfRoutes.tsx +++ b/packages/backend/src/routes/pdfRoutes.tsx @@ -6,6 +6,7 @@ import { authenticate } from "./authMiddleware"; import { db } from "../db/db"; import { sendReportMail } from "../features/mail"; import { getPDFName } from "../services/uploadService"; +import React from "react"; export const pdfPlugin: FastifyPluginAsyncTypebox = async (fastify, _) => { fastify.addHook("preHandler", authenticate);