add template to json store

This commit is contained in:
Thomas Ruoff
2021-03-07 22:27:28 +01:00
parent a3cc7e0e72
commit ff03a82eb2

View File

@@ -33,6 +33,7 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
const storeData = Object.assign({}, options, {
id,
created: new Date().toISOString(),
template: templateName,
})
await store.add(storeData)
res.status(200).json({ id: id })