mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 00:09:40 +02:00
fix(swarm/services): convert webhooks API filters to JSON on list request [EE-6621] (#11031)
Co-authored-by: matias-portainer <matias.spinarolli@portainer.io>
This commit is contained in:
parent
8a98704111
commit
97d227be2a
1 changed files with 6 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue