Created a pdf class that takes care of the pdf wrapping

ref #3
This commit is contained in:
2021-02-02 11:30:51 +01:00
parent 64bd1ffc3a
commit 7d5b5750ad
2 changed files with 17 additions and 10 deletions

View File

@@ -15,6 +15,6 @@ export class PdfController {
async generateContracts() {
//TODO: Accept the real classes
const contracts = await this.pdf.generateSponsoringContract();
return await this.pdf.toBuffer(contracts);
return await contracts.toBuffer();
}
}