Skip to content

Commit

Permalink
fix: users events with proper default config
Browse files Browse the repository at this point in the history
  • Loading branch information
achettyiitr committed Aug 25, 2024
1 parent 78e7a95 commit 6a261e7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/warehouse/config/WHUserConfig.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
const { getFirstValidValue } = require('./helpers');

const rules = {
anonymous_id: 'anonymousId',
sent_at: 'sentAt',
timestamp: 'timestamp',
original_timestamp: 'originalTimestamp',
channel: 'channel',
context_ip: (message) => getFirstValidValue(message, ['context.ip', 'request_ip']),
context_request_ip: 'request_ip',
context_passed_ip: 'context.ip',
Expand Down

0 comments on commit 6a261e7

Please sign in to comment.