File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,7 @@ import type {
7
7
8
8
type Timestamp = SegmentTrackParams [ 'timestamp' ] ;
9
9
10
- export type MongoshAnalyticsIdentity = SegmentIdentifyParams & {
11
- anonymousId : string ;
12
- } ;
10
+ export type MongoshAnalyticsIdentity = SegmentIdentifyParams ;
13
11
14
12
export type AnalyticsIdentifyMessage = MongoshAnalyticsIdentity & {
15
13
traits : {
@@ -281,7 +279,8 @@ export class ThrottledAnalytics implements MongoshAnalytics {
281
279
throw new Error ( 'Identify can only be called once per user session' ) ;
282
280
}
283
281
284
- this . currentUserId = message . userId ?? message . anonymousId ;
282
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
283
+ this . currentUserId = message . userId ?? message . anonymousId ! ;
285
284
286
285
this . restorePromise = this . restoreThrottleState ( ) . then ( ( enabled ) => {
287
286
if ( ! enabled ) {
You can’t perform that action at this time.
0 commit comments