diff --git a/src/routes/functions.ts b/src/routes/functions.ts index bcd49f9..fc59339 100644 --- a/src/routes/functions.ts +++ b/src/routes/functions.ts @@ -50,7 +50,7 @@ export default async function functionRoutes(server: FastifyInstance) { console.log(pdf) - reply.send(pdf) // Fastify wandelt automatisch in JSON + return pdf // Fastify wandelt automatisch in JSON } catch (err) { console.log(err) reply.code(500).send({ error: "Failed to create PDF" })