Skip to content

Commit

Permalink
fix: WAS & Redis 연결 이슈로 인한 Redis 사용 Controller 메서드 임시 연결
Browse files Browse the repository at this point in the history
  • Loading branch information
sdfgx123 committed Nov 12, 2023
1 parent 2fe0c9d commit 05415a1
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,13 @@ public ResponseEntity<ApiUtils.ApiResult<String>> startWork() {
return ResponseEntity.ok(ApiUtils.success(null));
}

@PostMapping("/on/redis")
public ResponseEntity<ApiUtils.ApiResult<String>> startWorkUsingRedis() {
Long userId = userService.getUser().getId();
scheduleService.startWorkUsingRedis(userId);
return ResponseEntity.ok(ApiUtils.success(null));
}

@PostMapping("/off")
public ResponseEntity<ApiUtils.ApiResult<String>> endWork() {
Long userId = userService.getUser().getId();
Expand Down

0 comments on commit 05415a1

Please sign in to comment.