refactor: streamline markAllAsRead method in notifications API service

- Simplified the return statement in the markAllAsRead method for improved readability and consistency.
This commit is contained in:
Anish Sarkar 2026-01-22 19:08:13 +05:30
parent 00596f991d
commit 3a1fa25a6f

View file

@ -83,12 +83,8 @@ class NotificationsApiService {
* Mark all notifications as read
*/
markAllAsRead = async (): Promise<MarkAllNotificationsReadResponse> => {
return baseApiService.patch(
"/api/v1/notifications/read-all",
markAllNotificationsReadResponse
);
return baseApiService.patch("/api/v1/notifications/read-all", markAllNotificationsReadResponse);
};
}
export const notificationsApiService = new NotificationsApiService();