From a3dd892b4549ae6510f40ae7f60a8fd44f6bdde4 Mon Sep 17 00:00:00 2001 From: Jenna Antilla <46546946+jennantilla@users.noreply.github.com> Date: Thu, 8 Feb 2024 10:03:02 -0800 Subject: [PATCH] Update Id getters to async --- www/UserNamespace.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/UserNamespace.ts b/www/UserNamespace.ts index df8c398b..2f79c176 100644 --- a/www/UserNamespace.ts +++ b/www/UserNamespace.ts @@ -208,7 +208,7 @@ export default class User { * Get the nullable OneSignal Id associated with the current user. * @returns {Promise} */ - getOnesignalId(): Promise { + async getOnesignalId(): Promise { return new Promise((resolve, reject) => { const callback = (response: {value: string}) => { resolve(response.value ? response.value : null) @@ -221,7 +221,7 @@ export default class User { * Get the nullable External Id associated with the current user. * @returns {Promise} */ - getExternalId(): Promise { + async getExternalId(): Promise { return new Promise((resolve, reject) => { const callback = (response: {value: string}) => { resolve(response.value ? response.value : null)