Merge pull request #28236 from element-hq/t3chguy/sonar-happy
This commit is contained in:
commit
4e93233a3d
18 changed files with 46 additions and 67 deletions
|
@ -296,10 +296,10 @@ export class PosthogAnalytics {
|
|||
// until the next time account data is refreshed and this function is called (most likely on next
|
||||
// page load). This will happen pretty infrequently, so we can tolerate the possibility.
|
||||
analyticsID = analyticsIdGenerator();
|
||||
await client.setAccountData(
|
||||
PosthogAnalytics.ANALYTICS_EVENT_TYPE,
|
||||
Object.assign({ id: analyticsID }, accountData),
|
||||
);
|
||||
await client.setAccountData(PosthogAnalytics.ANALYTICS_EVENT_TYPE, {
|
||||
id: analyticsID,
|
||||
...accountData,
|
||||
});
|
||||
}
|
||||
if (this.posthog.get_distinct_id() === analyticsID) {
|
||||
// No point identifying again
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue