Skip to content

Commit

Permalink
Fix OneSignal.User.externalId to return current id
Browse files Browse the repository at this point in the history
Update the hydrate call as well to include the local external id as the server response doesn't include it yet.
  • Loading branch information
shepherd-l committed Sep 23, 2024
1 parent 6ec79b5 commit 6531ad1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/CoreModuleDirector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export class CoreModuleDirector {
if (externalId) {
identity?.setExternalId(externalId);
properties?.setExternalId(externalId);
user.identity.external_id = externalId;
}

// identity and properties models are always single, so we hydrate immediately (i.e. replace existing data)
Expand Down

0 comments on commit 6531ad1

Please sign in to comment.