template header & footer margins

This commit is contained in:
Julian Krauser 2025-01-01 13:21:28 +01:00
parent b5760202f7
commit cfefcd81d7
10 changed files with 72 additions and 17 deletions

View file

@ -3,4 +3,6 @@ export interface UpdateTemplateUsageCommand {
headerId: number | null;
bodyId: number | null;
footerId: number | null;
headerHeight: number | null;
footerHeight: number | null;
}

View file

@ -17,6 +17,8 @@ export default abstract class TemplateUsageCommandHandler {
headerId: updateTemplateUsage.headerId,
bodyId: updateTemplateUsage.bodyId,
footerId: updateTemplateUsage.footerId,
headerHeight: updateTemplateUsage.headerHeight,
footerHeight: updateTemplateUsage.footerHeight,
})
.where("scope = :scope", { scope: updateTemplateUsage.scope })
.execute()