commit: 01807446a846bdda5581a45562d14e5d6d17acf1
parent e7f41fdca98376e393b751666f535ae52e56d23a
Author: tusooa <tusooa@kazv.moe>
Date: Tue, 27 Dec 2022 13:46:50 -0500
Make notification settings work
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/services/api/api.service.js b/src/services/api/api.service.js
@@ -164,7 +164,7 @@ const updateNotificationSettings = ({ credentials, settings }) => {
form.append(key, value)
})
- return fetch(NOTIFICATION_SETTINGS_URL, {
+ return fetch(`${NOTIFICATION_SETTINGS_URL}?${new URLSearchParams(settings)}`, {
headers: authHeaders(credentials),
method: 'PUT',
body: form