Skip to content

Commit

Permalink
chore: small improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin-Frost committed May 6, 2024
1 parent 491f7af commit c8bebc1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/posts/posts.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export class PostsController {
@UploadedFile(
new ParseFilePipe({
validators: [new FileTypeValidator({ fileType: 'image/*' })],
fileIsRequired: false,
}),
)
file: Express.Multer.File,
Expand Down
2 changes: 1 addition & 1 deletion src/users/users.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class UsersController {
fileIsRequired: false,
}),
)
file: Express.Multer.File,
file?: Express.Multer.File,
) {
if (user.sub !== +id) throw new ForbiddenException();

Expand Down

0 comments on commit c8bebc1

Please sign in to comment.