1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-25 08:19:40 +02:00

fix note patching for Pod (#8915)

This commit is contained in:
Prabhat Khera 2023-05-10 10:42:56 +12:00 committed by GitHub
parent 7197ca435a
commit 6a29198c5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 6 deletions

View file

@ -44,9 +44,14 @@ export async function patchPod(
},
];
try {
return await axios.put<Pod>(
return await axios.patch<Pod>(
buildUrl(environmentId, namespace, name),
payload
payload,
{
headers: {
'Content-Type': 'application/json-patch+json',
},
}
);
} catch (e) {
throw parseAxiosError(e as Error, 'Unable to update pod');