Skip to content
Snippets Groups Projects
Commit 2534d8bf authored by kbeyro's avatar kbeyro
Browse files

Set version to delete only when there is no running instances

parent 22d8e34d
No related branches found
No related tags found
1 merge request!10Remove app instances on base removal
This commit is part of merge request !10. Comments created here will be created in the context of that merge request.
...@@ -97,7 +97,7 @@ public class ApplicationBaseServiceImpl implements ApplicationBaseService { ...@@ -97,7 +97,7 @@ public class ApplicationBaseServiceImpl implements ApplicationBaseService {
.findAny() .findAny()
.ifPresent(appVersion -> appVersion.setState(state)); .ifPresent(appVersion -> appVersion.setState(state));
appBase.validate(); appBase.validate();
appBaseRepository.save(appBase); appBaseRepository.save(appBase);
if (state.equals(ApplicationState.ACTIVE)) { if (state.equals(ApplicationState.ACTIVE)) {
eventPublisher.publishEvent(new ApplicationActivatedEvent(this, name, version)); eventPublisher.publishEvent(new ApplicationActivatedEvent(this, name, version));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment