Update translations.

This commit is contained in:
Patrick Fic
2025-10-27 13:14:21 -07:00
parent 6b16f5fa5e
commit bd4fbf83c3
7 changed files with 203 additions and 78 deletions

View File

@@ -52,14 +52,13 @@ async function registerForPushNotificationsAsync() {
//Write the FCM token to database.
const result = await client.mutate({
await client.mutate({
mutation: UPDATE_FCM_TOKEN,
variables: {
email: (await getCurrentUser()).email,
token: { [pushTokenString]: { pushTokenString, platform: Platform.OS, timestamp: Date.now() } },
},
});
console.log("FCM token updated in database:", result);
return pushTokenString;
} catch (error) {
throw error