command handler & template change
This commit is contained in:
parent
f16c5d91ba
commit
455589e2b5
3 changed files with 6 additions and 2 deletions
|
@ -33,7 +33,7 @@ export default abstract class MembershipCommandHandler {
|
||||||
.createQueryBuilder()
|
.createQueryBuilder()
|
||||||
.update(membership)
|
.update(membership)
|
||||||
.set({
|
.set({
|
||||||
end: createMembership.start,
|
end: new Date(createMembership.start).setDate(new Date(createMembership.start).getDate() - 1),
|
||||||
terminationReason: "beendet durch neuen Eintrag.",
|
terminationReason: "beendet durch neuen Eintrag.",
|
||||||
})
|
})
|
||||||
.where("end IS NULL")
|
.where("end IS NULL")
|
||||||
|
|
|
@ -251,7 +251,10 @@ export abstract class NewsletterHelper {
|
||||||
|
|
||||||
this.formatJobEmit("progress", "pdf", newsletterId, pdfRecipients.length, 0, "starting sending");
|
this.formatJobEmit("progress", "pdf", newsletterId, pdfRecipients.length, 0, "starting sending");
|
||||||
|
|
||||||
for (const [index, rec] of pdfRecipients.entries()) {
|
for (const [index, rec] of [
|
||||||
|
...pdfRecipients,
|
||||||
|
{ id: 0, firstname: "Alle Mitglieder", lastname: CLUB_NAME } as member,
|
||||||
|
].entries()) {
|
||||||
this.formatJobEmit(
|
this.formatJobEmit(
|
||||||
"progress",
|
"progress",
|
||||||
"pdf",
|
"pdf",
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
<h2><b>{{this.formattedStarttime}}: {{this.title}}</b></h2>
|
<h2><b>{{this.formattedStarttime}}: {{this.title}}</b></h2>
|
||||||
<span>{{{this.content}}}</span>
|
<span>{{{this.content}}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
<br />
|
||||||
{{/each}}
|
{{/each}}
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
|
|
Loading…
Reference in a new issue