Skip to content

Commit aaa59cf

Browse files
fix: remove remaining void promises from appsflyer plugin (#1052)
1 parent 75f0cba commit aaa59cf

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

packages/plugins/plugin-appsflyer/src/AppsflyerPlugin.tsx

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,13 @@ export class AppsflyerPlugin extends DestinationPlugin {
167167
source: media_source,
168168
},
169169
};
170-
void this.analytics?.track('Deep Link Opened', properties);
170+
this.analytics
171+
?.track('Deep Link Opened', properties)
172+
.then(() =>
173+
this.analytics?.logger.info(
174+
'Sent Deep Link Opened event to Segment'
175+
)
176+
);
171177
}
172178
});
173179
};
@@ -183,7 +189,13 @@ export class AppsflyerPlugin extends DestinationPlugin {
183189
source: media_source,
184190
},
185191
};
186-
void this.analytics?.track('Deep Link Opened', properties);
192+
this.analytics
193+
?.track('Deep Link Opened', properties)
194+
.then(() =>
195+
this.analytics?.logger.info(
196+
'Sent Deep Link Opened event to Segment'
197+
)
198+
);
187199
}
188200
});
189201
};

0 commit comments

Comments
 (0)