mirror of
https://github.com/crocofied/CoreControl.git
synced 2025-12-29 16:14:43 +00:00
Finisch Notification Settings System
This commit is contained in:
@@ -97,7 +97,7 @@ const useNotifications = () => {
|
||||
const editNotificationApplicationsSettings = (settings: any): Promise<string> | string => {
|
||||
return axios.post('/api/notifications/settings_applications_edit', settings)
|
||||
.then((response) => {
|
||||
return response.data.notificationSettings;
|
||||
return response.data.notification;
|
||||
})
|
||||
.catch(err => {
|
||||
throw err.response?.data?.error || 'An error occurred';
|
||||
@@ -107,7 +107,7 @@ const useNotifications = () => {
|
||||
const editNotificationServerSettings = (settings: any): Promise<string> | string => {
|
||||
return axios.post('/api/notifications/settings_server_edit', settings)
|
||||
.then((response) => {
|
||||
return response.data.notificationSettings;
|
||||
return response.data.notification;
|
||||
})
|
||||
.catch(err => {
|
||||
throw err.response?.data?.error || 'An error occurred';
|
||||
|
||||
Reference in New Issue
Block a user