Cascade remove of a cloud to the DispatchingCloudContentRepository

Fixes 
This commit is contained in:
Julian Raufelder 2022-04-13 16:06:35 +02:00
parent 55d7f68f49
commit 85c06582bb
No known key found for this signature in database
GPG Key ID: 17EE71F6634E381D

@ -80,6 +80,7 @@ class CloudRepositoryImpl implements CloudRepository {
throw new IllegalArgumentException("Can not delete non persistent cloud"); throw new IllegalArgumentException("Can not delete non persistent cloud");
} }
database.delete(mapper.toEntity(cloud)); database.delete(mapper.toEntity(cloud));
dispatchingCloudContentRepository.removeCloudContentRepositoryFor(cloud);
} }
@Override @Override