260322:1648 Correct Coresspondence / Doing RFA / Correct CI
CI Pipeline / build (push) Failing after 12m41s
Build and Deploy / deploy (push) Failing after 2m44s

This commit is contained in:
admin
2026-03-22 16:48:12 +07:00
parent e5deedb42e
commit 11984bfa29
683 changed files with 105251 additions and 29068 deletions
@@ -1,9 +1,9 @@
import apiClient from "@/lib/api/client";
import { NotificationResponse } from "@/types/notification";
import apiClient from '@/lib/api/client';
import { NotificationResponse } from '@/types/notification';
export const notificationService = {
getUnread: async (): Promise<NotificationResponse> => {
const response = await apiClient.get("/notifications/unread");
const response = await apiClient.get('/notifications/unread');
// Backend should return { items: [], unreadCount: number }
// Or just items and we count on frontend, but typically backend gives count.
return response.data;
@@ -17,5 +17,5 @@ export const notificationService = {
markAllAsRead: async () => {
const response = await apiClient.patch(`/notifications/read-all`);
return response.data;
}
},
};