Updated comments

ref #5
This commit is contained in:
Nicolai Ort 2021-02-05 21:47:23 +01:00
parent 05e471878f
commit cf9cd298b6
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@ export class PdfController {
@Post('/contracts')
@OpenAPI({ description: "Generate Sponsoring contract pdfs from runner objects." })
async generateContracts(@Body({ validate: true }) runner: Runner, @Res() res: any, @QueryParam("locale") locale: string) {
await this.pdf;
const contracts = await this.pdf.generateSponsoringContract(runner, locale);
res.setHeader('content-type', 'application/pdf');
return await contracts;