changed data structure to single html

This commit is contained in:
Julian Krauser 2024-12-22 17:29:11 +01:00
parent 160d82459d
commit 5f18e614be
7 changed files with 8 additions and 28 deletions

View file

@ -59,18 +59,14 @@ export async function updateTemplate(req: Request, res: Response): Promise<any>
const template = req.body.template;
const description = req.body.description;
const design = req.body.design;
const headerHTML = req.body.headerHTML;
const bodyHTML = req.body.bodyHTML;
const footerHTML = req.body.footerHTML;
const html = req.body.html;
let updateTemplate: UpdateTemplateCommand = {
id: id,
template: template,
description: description,
design: design,
headerHTML: headerHTML,
bodyHTML: bodyHTML,
footerHTML: footerHTML,
html: html,
};
await TemplateCommandHandler.update(updateTemplate);