Fix API requests after #30818 (#30837)

This commit is contained in:
Claire 2024-06-25 18:53:03 +02:00 committed by GitHub
parent 845fe1c693
commit 2c7eed1fa1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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);