mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-25 21:43:49 +00:00
Isssue with windStore fixed which was introduced during the creation of
the test support bundle.
This commit is contained in:
1 parent
ea47512811
commit
9577657f9e
1 file changed
+7
-7
+7
-7
@@ -301,6 +301,13 @@ public class RacingEventServiceImpl implements RacingEventServiceWithTestSupport
|
||||
private RacingEventServiceImpl(DomainObjectFactory domainObjectFactory, MongoObjectFactory mongoObjectFactory,
|
||||
com.sap.sailing.domain.base.DomainFactory baseDomainFactory, MediaDB mediaDb, CompetitorStore competitorStore, WindStore windStore) {
|
||||
logger.info("Created " + this);
|
||||
if (windStore == null) {
|
||||
try {
|
||||
windStore = MongoWindStoreFactory.INSTANCE.getMongoWindStore(mongoObjectFactory, domainObjectFactory);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
this.baseDomainFactory = baseDomainFactory;
|
||||
this.domainObjectFactory = domainObjectFactory;
|
||||
this.mongoObjectFactory = mongoObjectFactory;
|
||||
@@ -322,13 +329,6 @@ public class RacingEventServiceImpl implements RacingEventServiceWithTestSupport
|
||||
this.raceLogReplicator = new RaceLogReplicator(this);
|
||||
this.raceLogScoringReplicator = new RaceLogScoringReplicator(this);
|
||||
this.mediaLibrary = new MediaLibrary();
|
||||
if (windStore == null) {
|
||||
try {
|
||||
windStore = MongoWindStoreFactory.INSTANCE.getMongoWindStore(mongoObjectFactory, domainObjectFactory);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
this.configurationMap = new DeviceConfigurationMapImpl();
|
||||
|
||||
// Add one default leaderboard that aggregates all races currently tracked by this service.
|
||||
|
||||
Reference in new issue
Block a user