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

@ -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 {

View file

@ -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()