1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 13:29:41 +02:00

fix(swarm): fix service updates BE-11219 (#57)
Some checks are pending
Label Conflicts / triage (push) Waiting to run

This commit is contained in:
andres-portainer 2024-10-23 18:23:24 -03:00 committed by GitHub
parent 3114d4b5c5
commit cc75167437

View file

@ -56,11 +56,12 @@ function ServiceServiceFactory(AngularToReact) {
* @param {string?} rollback
*/
async function updateServiceAngularJS(environmentId, service, config, rollback) {
const data = await getServiceAngularJS(environmentId, service.Id);
return updateService({
environmentId,
config,
serviceId: service.Id,
version: service.Version,
version: data.Version,
registryId: config.registryId,
rollback,
});