Skip to content

Commit

Permalink
Merge pull request #21 from mwrooth/add-museum_id_param
Browse files Browse the repository at this point in the history
update
  • Loading branch information
AhmedMabrouk22 authored Jun 29, 2024
2 parents c054caf + 9fcf541 commit a57949f
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/users/users.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,7 @@ export class UsersController {
type: ImageUploadDto,
})
async uploadImage(
@UploadedFile(
new ParseFilePipeBuilder()
.addFileTypeValidator({
fileType: /(png|jpeg|jpg)/,
})
.build(),
)
@UploadedFile()
file: Express.Multer.File,
@Request() req,
) {
Expand All @@ -88,7 +82,7 @@ export class UsersController {
async createUser(@Body() userData: CreateUserDto, @Request() req) {
if (req.user.type === UserType.MUSEUMS_ADMIN) {
userData.museumId = req.user.museum;
}
}

return await this.userService.createUser(userData);
}
Expand Down

0 comments on commit a57949f

Please sign in to comment.