changed data structure to single html
This commit is contained in:
parent
160d82459d
commit
5f18e614be
7 changed files with 8 additions and 28 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue