mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 08:46:22 +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
|
||||
*/
|
||||
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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue