Skip to content

Commit

Permalink
refactor(sample/29): update parse file usage
Browse files Browse the repository at this point in the history
update ParseFilePipeBuilder to use fileIsRequired option
  • Loading branch information
thiagomini committed Jul 27, 2022
1 parent 43e54d1 commit b273064
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sample/29-file-upload/src/app.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class AppController {
fileType: 'json',
})
.build({
fileIsOptional: true,
fileIsRequired: false,
}),
)
file?: Express.Multer.File,
Expand Down

0 comments on commit b273064

Please sign in to comment.