Expanded max request body size to 500mb

ref #5
This commit is contained in:
Nicolai Ort 2021-02-07 15:41:53 +01:00
parent 1ced0e3175
commit 4f191dcb52
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ export class PdfController {
@Post('/contracts')
@OpenAPI({ description: "Generate Sponsoring contract pdfs from runner objects.<br>You can choose your prefered locale by passing the 'locale' query-param." })
async generateContracts(@Body({ validate: true }) runners: Runner | Runner[], @Res() res: any, @QueryParam("locale") locale: string) {
async generateContracts(@Body({ validate: true, options: { limit: "500mb" } }) runners: Runner | Runner[], @Res() res: any, @QueryParam("locale") locale: string) {
if (!this.initialized) {
await this.pdf.init();
this.initialized = true;