From 866434dc0eb5bfbba734834a048cdd3ea6134936 Mon Sep 17 00:00:00 2001 From: Donghun Won Date: Sun, 22 Sep 2024 22:57:42 +0900 Subject: [PATCH] =?UTF-8?q?Fix=20:=20=EC=9C=A0=EC=A0=80=20=ED=94=84?= =?UTF-8?q?=EB=A1=9C=ED=95=84=EC=9D=B4=20=EB=94=94=ED=8F=B4=ED=8A=B8=20?= =?UTF-8?q?=ED=94=84=EB=A1=9C=ED=95=84=EC=9D=BC=EB=95=8C=EB=A7=8C=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD=20(#205)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../solitour_backend/solitour/user/service/UserService.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/solitour_backend/solitour/user/service/UserService.java b/src/main/java/solitour_backend/solitour/user/service/UserService.java index b370a72..92bcd34 100644 --- a/src/main/java/solitour_backend/solitour/user/service/UserService.java +++ b/src/main/java/solitour_backend/solitour/user/service/UserService.java @@ -92,9 +92,10 @@ public void updateUserInfo(Long userId, UpdateUserInfoRequest request) { private void changeUserProfile(User user, UpdateUserInfoRequest request) { String sex = request.getSex(); - if(sex.equals("male")){ + + if(user.getUserImage().equals(noneProfileUrl) && sex.equals("male")){ user.updateUserImage(maleProfileUrl); - } else if (sex.equals("female")) { + } else if (user.getUserImage().equals(noneProfileUrl) && sex.equals("female")) { user.updateUserImage(femaleProfileUrl); } }