[Glitch] Fix API requests after #30818

Port 2c7eed1fa1 to glitch-soc
This commit is contained in:
Claire
2024-06-25 18:53:03 +02:00
parent 85e6efd351
commit 7d89d1f186
3 changed files with 3 additions and 10 deletions

View File

@@ -6,7 +6,4 @@ export const apiGetNotificationPolicy = () =>
export const apiUpdateNotificationsPolicy = (
policy: Partial<NotificationPolicyJSON>,
) =>
apiRequestPut<NotificationPolicyJSON>('/v1/notifications/policy', {
data: policy,
});
) => apiRequestPut<NotificationPolicyJSON>('/v1/notifications/policy', policy);