Skip to content

Commit a016671

Browse files
committed
[RENAME] 약관동의여부 조회 관련 함수명 수정
1 parent 867be20 commit a016671

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/org/websoso/WSSServer/controller/UserController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,10 @@ public ResponseEntity<Void> registerPushSetting(Principal principal,
242242
}
243243

244244
@GetMapping("/terms-settings")
245-
public ResponseEntity<TermsSettingGetResponse> getConsentSettingValue(Principal principal) {
245+
public ResponseEntity<TermsSettingGetResponse> getTermsSettingValue(Principal principal) {
246246
User user = userService.getUserOrException(Long.valueOf(principal.getName()));
247247
return ResponseEntity
248248
.status(OK)
249-
.body(userService.getConsentSettingValue(user));
249+
.body(userService.getTermsSettingValue(user));
250250
}
251251
}

src/main/java/org/websoso/WSSServer/service/UserService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ public PushSettingGetResponse getPushSettingValue(User user) {
280280
}
281281

282282
@Transactional(readOnly = true)
283-
public TermsSettingGetResponse getConsentSettingValue(User user) {
283+
public TermsSettingGetResponse getTermsSettingValue(User user) {
284284
return TermsSettingGetResponse.of(user.getServiceAgreed(), user.getPrivacyAgreed(),
285285
user.getMarketingAgreed());
286286
}

0 commit comments

Comments
 (0)