From 8236fe4f1af3111d5bb44a9a75f9929b90efee5d Mon Sep 17 00:00:00 2001 From: NameIsUser06 Date: Tue, 9 Jan 2024 00:10:03 +0900 Subject: [PATCH] fix : user update required --- .../findfriend/domain/user/presentation/UserController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/investment/findfriend/domain/user/presentation/UserController.java b/src/main/java/com/investment/findfriend/domain/user/presentation/UserController.java index 06ea15b..77b56f8 100644 --- a/src/main/java/com/investment/findfriend/domain/user/presentation/UserController.java +++ b/src/main/java/com/investment/findfriend/domain/user/presentation/UserController.java @@ -25,7 +25,7 @@ public ResponseEntity getUserInfo(HttpServletRequest httpServletRe } @PutMapping(value = "/update", consumes = MediaType.MULTIPART_FORM_DATA_VALUE) // 유저 정보 업데이트 - public ResponseEntity updateUserInfo(@RequestPart("data") UpdateUserInfoRequest request, @RequestPart("file") MultipartFile file, HttpServletRequest httpServletRequest) { + public ResponseEntity updateUserInfo(@RequestPart("data") UpdateUserInfoRequest request, @RequestPart(value = "file", required = false) MultipartFile file, HttpServletRequest httpServletRequest) { return updateUserInfoService.execute(request, file, httpServletRequest); }