Skip to content

Commit

Permalink
fix(profilePicture): remove invalid option from request body (#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cr1stal423 authored Jan 14, 2025
1 parent 4d18fb9 commit c3b5ca8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ public ResponseEntity<Long> getActivatedUsersAmount() {
@ApiResponse(responseCode = "400", description = HttpStatuses.BAD_REQUEST),
@ApiResponse(responseCode = "401", description = HttpStatuses.UNAUTHORIZED),
})
@PatchMapping(consumes = {MediaType.APPLICATION_JSON_VALUE, MediaType.MULTIPART_FORM_DATA_VALUE},
@PatchMapping(consumes = MediaType.MULTIPART_FORM_DATA_VALUE,
path = "/profilePicture")
public ResponseEntity<HttpStatus> updateUserProfilePicture(
@Parameter(description = "pass image as base64") @ValidBase64 @RequestPart(required = false) String base64,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,8 @@ void updateUserProfilePictureTest() throws Exception {
.file(jsonFile)
.headers(headers)
.principal(principal)
.accept(MediaType.APPLICATION_JSON)
.contentType(MediaType.APPLICATION_JSON))
.accept(MediaType.MULTIPART_FORM_DATA_VALUE)
.contentType(MediaType.MULTIPART_FORM_DATA_VALUE))
.andExpect(status().isOk());
}

Expand Down

0 comments on commit c3b5ca8

Please sign in to comment.