mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-10 16:22:38 +02:00
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:
parent
00596f991d
commit
3a1fa25a6f
1 changed files with 1 additions and 5 deletions
|
|
@ -83,12 +83,8 @@ class NotificationsApiService {
|
||||||
* Mark all notifications as read
|
* Mark all notifications as read
|
||||||
*/
|
*/
|
||||||
markAllAsRead = async (): Promise<MarkAllNotificationsReadResponse> => {
|
markAllAsRead = async (): Promise<MarkAllNotificationsReadResponse> => {
|
||||||
return baseApiService.patch(
|
return baseApiService.patch("/api/v1/notifications/read-all", markAllNotificationsReadResponse);
|
||||||
"/api/v1/notifications/read-all",
|
|
||||||
markAllNotificationsReadResponse
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export const notificationsApiService = new NotificationsApiService();
|
export const notificationsApiService = new NotificationsApiService();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue