changed data structure to single html
This commit is contained in:
parent
160d82459d
commit
5f18e614be
7 changed files with 8 additions and 28 deletions
|
@ -8,9 +8,7 @@ export interface UpdateTemplateCommand {
|
|||
template: string;
|
||||
description: string | null;
|
||||
design: object;
|
||||
headerHTML: string;
|
||||
bodyHTML: string;
|
||||
footerHTML: string;
|
||||
html: string;
|
||||
}
|
||||
|
||||
export interface DeleteTemplateCommand {
|
||||
|
|
|
@ -40,9 +40,7 @@ export default abstract class TemplateCommandHandler {
|
|||
template: updateTemplate.template,
|
||||
description: updateTemplate.description,
|
||||
design: updateTemplate.design,
|
||||
headerHTML: updateTemplate.headerHTML,
|
||||
bodyHTML: updateTemplate.bodyHTML,
|
||||
footerHTML: updateTemplate.footerHTML,
|
||||
html: updateTemplate.html,
|
||||
})
|
||||
.where("id = :id", { id: updateTemplate.id })
|
||||
.execute()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue