first working pdf generation from class 🎉

ref #5
This commit is contained in:
2021-02-05 17:59:26 +01:00
parent d58453faf9
commit 3af76a53e3
4 changed files with 26 additions and 8 deletions

View File

@@ -24,7 +24,7 @@ export class PdfCreator {
.replace("{{runner_id}}", runner.id.toString())
.replace("{{runner_firstname}}", runner.firstname)
.replace("{{runner_lastname}}", runner.lastname)
.replace("{{runner_groupname}}", runner.group.id.toString());
.replace("{{runner_groupname}}", runner.group.name);
return await this.renderPdf(template, { format: "A5", landscape: true });
}