Skip to content

Commit

Permalink
fallback for user id
Browse files Browse the repository at this point in the history
  • Loading branch information
paglias committed Apr 2, 2019
1 parent f4c681e commit 7457ad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/server/libs/analyticsService.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ async function track (eventType, data) {
if (data.user && data.user.registeredThrough) {
promises.push(_setOnce({
registeredPlatform: data.user.registeredThrough,
}, data.uuid));
}, data.uuid || data.user._id));
}

return Promise.all(promises);
Expand Down

0 comments on commit 7457ad6

Please sign in to comment.