Skip to content

Commit 009a9b4

Browse files
committed
fix: pick the fields instead of omitting
1 parent 66e1d89 commit 009a9b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/logging/src/analytics-helpers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import fs from 'fs';
22
import path from 'path';
33
import type { IdentifyParams as SegmentIdentity } from '@segment/analytics-node';
44

5-
export type MongoshAnalyticsIdentity = Omit<
5+
export type MongoshAnalyticsIdentity = Pick<
66
SegmentIdentity,
7-
'context' | 'traits' | 'timestamp'
7+
'userId' | 'anonymousId'
88
>;
99

1010
export type AnalyticsIdentifyMessage = MongoshAnalyticsIdentity & {

0 commit comments

Comments
 (0)