mirror of
https://github.com/tomru/pdfer.git
synced 2026-03-03 06:27:19 +01:00
fix type errors
This commit is contained in:
@@ -33,7 +33,7 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
|
||||
await renderer(id, texDoc)
|
||||
const storeData = { ...templateData, id, created: new Date().toISOString(), template: templateName }
|
||||
res.status(200).json({ id: id, data: storeData })
|
||||
} catch (err) {
|
||||
} catch (err: any) {
|
||||
console.error('Error:', err, 'for', req.url)
|
||||
res.status(500).json({ error: err.toString() })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user