#25-cleanup-&-enhancements #31

Merged
jkeffects merged 7 commits from #25-cleanup-&-enhancements into main 2025-01-05 15:12:11 +00:00
3 changed files with 6 additions and 2 deletions
Showing only changes of commit 455589e2b5 - Show all commits

View file

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

View file

@ -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",

View file

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