mirror of https://github.com/portainer/portainer
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
parent
8a98704111
commit
97d227be2a
|
@ -10,7 +10,12 @@ export async function getWebhooks(
|
||||||
) {
|
) {
|
||||||
try {
|
try {
|
||||||
const { data } = await axios.get<Array<Webhook>>(buildUrl(), {
|
const { data } = await axios.get<Array<Webhook>>(buildUrl(), {
|
||||||
params: { filters: { EndpointID: environmentId, ResourceID: serviceId } },
|
params: {
|
||||||
|
filters: JSON.stringify({
|
||||||
|
EndpointID: environmentId,
|
||||||
|
ResourceID: serviceId,
|
||||||
|
}),
|
||||||
|
},
|
||||||
});
|
});
|
||||||
return data;
|
return data;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
Loading…
Reference in New Issue