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
Branches
Tags
1 merge request!10Remove app instances on base removal
......@@ -97,7 +97,7 @@ public class ApplicationBaseServiceImpl implements ApplicationBaseService {
.findAny()
.ifPresent(appVersion -> appVersion.setState(state));
appBase.validate();
appBaseRepository.save(appBase);
appBaseRepository.save(appBase);
if (state.equals(ApplicationState.ACTIVE)) {
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