Skip to content

Commit

Permalink
Merge pull request #46 from lotteon2/feat/read-notification
Browse files Browse the repository at this point in the history
fix: 알림 읽음 처리 수정
  • Loading branch information
qwerty1434 authored Jan 17, 2024
2 parents 142db50 + 7cb2434 commit 4f8bc44
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 4f8bc44

Please sign in to comment.