mirror of
https://github.com/portainer/portainer.git
synced 2025-08-06 14:25:31 +02:00
fix(swarm): fix service updates BE-11219 (#58)
This commit is contained in:
parent
80c8e483c9
commit
34532deccb
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue