diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/violation/room/RoomViolationWarningCmdExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/violation/room/RoomViolationWarningCmdExe.java index addc38e0..067692e3 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/violation/room/RoomViolationWarningCmdExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/violation/room/RoomViolationWarningCmdExe.java @@ -145,7 +145,7 @@ public class RoomViolationWarningCmdExe { private boolean isArabicRegion(Long userId) { try { - return "ar".equalsIgnoreCase(userRegionGateway.getRegionConfigByUserId(userId).getRegionName()); + return "ar".equalsIgnoreCase(userRegionGateway.getRegionConfigByUserId(userId).getRegionCode()); } catch (Exception e) { log.warn("Failed to get user region, userId={}", userId, e); return false; diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/violation/user/UserViolationAdjustCmdExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/violation/user/UserViolationAdjustCmdExe.java index 8d37c624..66154914 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/violation/user/UserViolationAdjustCmdExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/violation/user/UserViolationAdjustCmdExe.java @@ -162,7 +162,7 @@ public class UserViolationAdjustCmdExe { private boolean isArabicRegion(Long userId) { try { - return "ar".equalsIgnoreCase(userRegionGateway.getRegionConfigByUserId(userId).getRegionName()); + return "ar".equalsIgnoreCase(userRegionGateway.getRegionConfigByUserId(userId).getRegionCode()); } catch (Exception e) { log.warn("Failed to get user region, userId={}", userId, e); return false; diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/violation/user/UserViolationWarningCmdExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/violation/user/UserViolationWarningCmdExe.java index cc7c7f28..5e41f70e 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/violation/user/UserViolationWarningCmdExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/violation/user/UserViolationWarningCmdExe.java @@ -125,7 +125,7 @@ public class UserViolationWarningCmdExe { private boolean isArabicRegion(Long userId) { try { - return "ar".equalsIgnoreCase(userRegionGateway.getRegionConfigByUserId(userId).getRegionName()); + return "ar".equalsIgnoreCase(userRegionGateway.getRegionConfigByUserId(userId).getRegionCode()); } catch (Exception e) { log.warn("Failed to get user region, userId={}", userId, e); return false;