Skip to content

Commit

Permalink
Merge pull request #115 from coworking-metz/location-in-current-users
Browse files Browse the repository at this point in the history
return the hearbeat location in the current-users route
  • Loading branch information
gfra54 authored Sep 17, 2024
2 parents b35a28f + 48772bd commit f0ca94a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/models/member.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ export async function computeMemberFromUser(user, options = {}) {
email: user.email,
balance: user.profile.balance,
lastSeen: user.profile.heartbeat,
location: user.profile.heartbeatLocation,
picture: buildPictureUrl(user.wpUserId),
thumbnail: buildPictureUrl(user.wpUserId, 'thumbnail'),
attending: differenceInMinutes(new Date(), new Date(user.profile.heartbeat)) <= LAST_SEEN_DELAY
Expand Down

0 comments on commit f0ca94a

Please sign in to comment.