Skip to content

Commit

Permalink
refactor(MonitoredTrip): Hide getPrimaryTraveler from Mongo and JSON …
Browse files Browse the repository at this point in the history
…serialization.
  • Loading branch information
binh-dam-ibigroup committed Dec 16, 2024
1 parent 5369efb commit 29b0086
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 29b0086

Please sign in to comment.