mirror of https://github.com/portainer/portainer
fix(swarm): fix service updates BE-11219 (#57)
parent
3114d4b5c5
commit
cc75167437
|
@ -56,11 +56,12 @@ function ServiceServiceFactory(AngularToReact) {
|
||||||
* @param {string?} rollback
|
* @param {string?} rollback
|
||||||
*/
|
*/
|
||||||
async function updateServiceAngularJS(environmentId, service, config, rollback) {
|
async function updateServiceAngularJS(environmentId, service, config, rollback) {
|
||||||
|
const data = await getServiceAngularJS(environmentId, service.Id);
|
||||||
return updateService({
|
return updateService({
|
||||||
environmentId,
|
environmentId,
|
||||||
config,
|
config,
|
||||||
serviceId: service.Id,
|
serviceId: service.Id,
|
||||||
version: service.Version,
|
version: data.Version,
|
||||||
registryId: config.registryId,
|
registryId: config.registryId,
|
||||||
rollback,
|
rollback,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue