Skip to content

Commit

Permalink
Merge pull request #281 from ibi-group/hide-primary-traveler-getter
Browse files Browse the repository at this point in the history
Hide getPrimaryTraveler from Mongo and JSON serialization
  • Loading branch information
binh-dam-ibigroup authored Dec 19, 2024
2 parents 7d6134f + 29b0086 commit e50e001
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 e50e001

Please sign in to comment.