diff --git a/src/main/java/org/opentripplanner/middleware/models/MonitoredTrip.java b/src/main/java/org/opentripplanner/middleware/models/MonitoredTrip.java index e14d7d99..2a845273 100644 --- a/src/main/java/org/opentripplanner/middleware/models/MonitoredTrip.java +++ b/src/main/java/org/opentripplanner/middleware/models/MonitoredTrip.java @@ -493,6 +493,8 @@ public static TripUsers getAddedUsers(MonitoredTrip monitoredTrip, MonitoredTrip * @return The id of the primary traveler (the primary user of a trip, * or the user who created the trip if no primary user has been set). */ + @JsonIgnore + @BsonIgnore public String getPrimaryTravelerId() { return primary != null ? primary.userId : userId; }