Add notification settings to profile view

This commit is contained in:
Johannes Zellner
2025-05-07 14:19:20 +02:00
parent 46dbd016f4
commit d384442fb3
3 changed files with 118 additions and 1 deletions
+11
View File
@@ -208,6 +208,17 @@ function create() {
if (error || result.status !== 204) return [error || result];
return [null];
},
async setNotificationConfig(notificationConfig) {
let error, result;
try {
result = await fetcher.post(`${API_ORIGIN}/api/v1/profile/notification_config`, { notificationConfig }, { access_token: accessToken });
} catch (e) {
error = e;
}
if (error || result.status !== 204) return [error || result];
return [null, result.body];
},
async setupAccount(data) {
let error, result;
try {