Fixed Dumb Error
This commit is contained in:
@@ -50,7 +50,7 @@ export default async function functionRoutes(server: FastifyInstance) {
|
|||||||
|
|
||||||
console.log(pdf)
|
console.log(pdf)
|
||||||
|
|
||||||
reply.send(pdf) // Fastify wandelt automatisch in JSON
|
return pdf // Fastify wandelt automatisch in JSON
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log(err)
|
console.log(err)
|
||||||
reply.code(500).send({ error: "Failed to create PDF" })
|
reply.code(500).send({ error: "Failed to create PDF" })
|
||||||
|
|||||||
Reference in New Issue
Block a user