mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-14 06:18:12 +00:00
Bug 5085: Using RacingEventService to get the AbstractLogEventAuthor
instead of manually constructing one
This commit is contained in:
1 parent
5865735502
commit
81af351f1c
1 file changed
+1
-1
+1
-1
@@ -610,7 +610,7 @@ public class LeaderboardsResource extends AbstractLeaderboardsResource {
|
||||
final Response result;
|
||||
if (leaderboardAndRaceColumnAndFleetAndResponse.getFleet() != null) {
|
||||
final RaceLog raceLog = leaderboardAndRaceColumnAndFleetAndResponse.getRaceColumn().getRaceLog(leaderboardAndRaceColumnAndFleetAndResponse.getFleet());
|
||||
final LogEventAuthorImpl author = new LogEventAuthorImpl(SecurityUtils.getSubject().getPrincipal().toString(), /* priority */ 0);
|
||||
final AbstractLogEventAuthor author = getService().getServerAuthor();
|
||||
JSONObject jsonResult = new JSONObject();
|
||||
if (startOfTrackingAsISO != null || startOfTrackingAsMillis != null) {
|
||||
final TimePoint startOfTracking = parseTimePoint(startOfTrackingAsISO, startOfTrackingAsMillis, null);
|
||||
|
||||
Reference in new issue
Block a user