#25-cleanup-&-enhancements #31
3 changed files with 6 additions and 2 deletions
|
@ -33,7 +33,7 @@ export default abstract class MembershipCommandHandler {
|
|||
.createQueryBuilder()
|
||||
.update(membership)
|
||||
.set({
|
||||
end: createMembership.start,
|
||||
end: new Date(createMembership.start).setDate(new Date(createMembership.start).getDate() - 1),
|
||||
terminationReason: "beendet durch neuen Eintrag.",
|
||||
})
|
||||
.where("end IS NULL")
|
||||
|
|
|
@ -251,7 +251,10 @@ export abstract class NewsletterHelper {
|
|||
|
||||
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(
|
||||
"progress",
|
||||
"pdf",
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
<h2><b>{{this.formattedStarttime}}: {{this.title}}</b></h2>
|
||||
<span>{{{this.content}}}</span>
|
||||
</div>
|
||||
<br />
|
||||
{{/each}}
|
||||
<br />
|
||||
<br />
|
||||
|
|
Loading…
Reference in a new issue