mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-22 21:55:39 +00:00
fixed construction of device mapping for competitors without boat
Change-Id: I77c3a5a99514096de86fe558ac7c83e82cd23f06
This commit is contained in:
+2
-2
@@ -6237,9 +6237,9 @@ public class SailingServiceImpl extends ProxiedRemoteServiceServlet implements S
|
||||
Mark mark = convertToMark(((MarkDTO) dto.mappedTo), true);
|
||||
event = new RegattaLogDeviceMarkMappingEventImpl(now, now, getService().getServerAuthor(), UUID.randomUUID(),
|
||||
mark, mapping.getDevice(), from, to);
|
||||
} else if (dto.mappedTo instanceof CompetitorWithBoatDTO) {
|
||||
} else if (dto.mappedTo instanceof CompetitorDTO) {
|
||||
Competitor competitor = getService().getCompetitorAndBoatStore().getExistingCompetitorByIdAsString(
|
||||
((CompetitorWithBoatDTO) dto.mappedTo).getIdAsString());
|
||||
((CompetitorDTO) dto.mappedTo).getIdAsString());
|
||||
if (mapping.getDevice().getIdentifierType().equals(ExpeditionSensorDeviceIdentifier.TYPE)) {
|
||||
event = new RegattaLogDeviceCompetitorExpeditionExtendedMappingEventImpl(
|
||||
now, now, getService().getServerAuthor(), UUID.randomUUID(),
|
||||
|
||||
Reference in New Issue
Block a user