Skip to content

Commit b4390b8

Browse files
authored
Merge pull request #163 from velopert/fix/notification-count-query
알림 로직 수정
2 parents 54264fc + d0afdb9 commit b4390b8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/services/notificationService.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ export const notificationService = {
1919
},
2020
async notificationCount(cookies: Cookies) {
2121
const NOTIFICATION_COUNT_QUERY = `
22-
query NotificationCount {
23-
notificationCount
22+
query NotNoticeNotificationCount {
23+
notNoticeNotificationCount
2424
}
2525
`;
2626

@@ -30,7 +30,7 @@ export const notificationService = {
3030
const res = await Axios.post<AxiosResponse<NotificationCountResponse>>(
3131
endpoint,
3232
{
33-
operationName: 'NotificationCount',
33+
operationName: 'NotNoticeNotificationCount',
3434
query: NOTIFICATION_COUNT_QUERY,
3535
},
3636
{
@@ -41,7 +41,7 @@ export const notificationService = {
4141
}
4242
);
4343

44-
return res.data.data.notificationCount;
44+
return res.data.data.notNoticeNotificationCount;
4545
},
4646
async createNotification({
4747
type,
@@ -141,7 +141,7 @@ type findByActionArgs = {
141141
};
142142

143143
type NotificationCountResponse = {
144-
notificationCount: number;
144+
notNoticeNotificationCount: number;
145145
};
146146

147147
type NotificationActionInput = {

0 commit comments

Comments
 (0)