Skip to content

Commit

Permalink
Update Id getters to async
Browse files Browse the repository at this point in the history
  • Loading branch information
jennantilla committed Feb 8, 2024
1 parent 776ce81 commit a3dd892
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/UserNamespace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export default class User {
* Get the nullable OneSignal Id associated with the current user.
* @returns {Promise<string | null>}
*/
getOnesignalId(): Promise<string | null> {
async getOnesignalId(): Promise<string | null> {
return new Promise<string | null>((resolve, reject) => {
const callback = (response: {value: string}) => {
resolve(response.value ? response.value : null)
Expand All @@ -221,7 +221,7 @@ export default class User {
* Get the nullable External Id associated with the current user.
* @returns {Promise<string | null>}
*/
getExternalId(): Promise<string | null> {
async getExternalId(): Promise<string | null> {
return new Promise<string | null>((resolve, reject) => {
const callback = (response: {value: string}) => {
resolve(response.value ? response.value : null)
Expand Down

0 comments on commit a3dd892

Please sign in to comment.