Skip to content

Commit

Permalink
fix: 알림 읽음 처리 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
nowgnas committed Jan 17, 2024
1 parent 31a8c9c commit 7cb2434
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,13 @@ public void customerNotificationCheck(
}

@PutMapping("admin/check")
public void adminNotificationCheck(
@RequestBody List<Long> notificationId, @RequestHeader Long userId) {
notificationCommandService.updateNotificationIsRead(notificationId, userId, Role.ADMIN);
public void adminNotificationCheck(@RequestBody List<Long> notificationId) {
notificationCommandService.updateNotificationIsRead(notificationId, 100L, Role.ADMIN);
}

@PutMapping("manager/check")
@PutMapping("manager/{storeId}/check")
public void managerNotificationCheck(
@RequestBody List<Long> notificationId, @RequestHeader Long userId) {
notificationCommandService.updateNotificationIsRead(notificationId, userId, Role.MANAGER);
@RequestBody List<Long> notificationId, @PathVariable Long storeId) {
notificationCommandService.updateNotificationIsRead(notificationId, storeId, Role.MANAGER);
}
}

0 comments on commit 7cb2434

Please sign in to comment.