Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: Fix the sample code for sending FCM from Supabase edge functions (#21039)

Tyler1b1180c8bbab
diff --git a/apps/docs/pages/guides/functions/examples/push-notifications.mdx b/apps/docs/pages/guides/functions/examples/push-notifications.mdx
index b3493abe49f..eecf409eaec 100644
--- a/apps/docs/pages/guides/functions/examples/push-notifications.mdx
+++ b/apps/docs/pages/guides/functions/examples/push-notifications.mdx
@@ -189,7 +189,7 @@ Push notifications are an important part of any mobile app. They allow you to se
const { data } = await supabase
.from('profiles')
.select('fcm_token')
- .eq('id', payload.record.profile_id)
+ .eq('id', payload.record.user_id)
.single()
const fcmToken = data!.fcm_token as string