fix(swarm/services): convert webhooks API filters to JSON on list request [EE-6621] (#11031)

Co-authored-by: matias-portainer <matias.spinarolli@portainer.io>
pull/11034/head
Chaim Lev-Ari 2024-01-29 18:08:25 +02:00 committed by GitHub
parent 8a98704111
commit 97d227be2a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 1 deletions

View File

@ -10,7 +10,12 @@ export async function getWebhooks(
) {
try {
const { data } = await axios.get<Array<Webhook>>(buildUrl(), {
params: { filters: { EndpointID: environmentId, ResourceID: serviceId } },
params: {
filters: JSON.stringify({
EndpointID: environmentId,
ResourceID: serviceId,
}),
},
});
return data;
} catch (error) {