The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
patches error on single() call
Paul Copplestonef9a1ebb04844
diff --git a/web/docs/guides/with-nextjs.mdx b/web/docs/guides/with-nextjs.mdxindex 5aed3cda538..ff2d1cbef09 100644--- a/web/docs/guides/with-nextjs.mdx+++ b/web/docs/guides/with-nextjs.mdx@@ -294,7 +294,7 @@ export default function Account({ session }) {.eq('id', user.id).single()- if (error) {+ if (error && status != 416) {throw error}diff --git a/web/docs/guides/with-react.mdx b/web/docs/guides/with-react.mdxindex 436722b6835..16e16de77c8 100644--- a/web/docs/guides/with-react.mdx+++ b/web/docs/guides/with-react.mdx@@ -286,13 +286,13 @@ export default function Account({ session }) {setLoading(true)const user = supabase.auth.user()- let { data, error } = await supabase+ let { data, error, status } = await supabase.from('profiles').select(`username, website, avatar_url`).eq('id', user.id).single()- if (error) {+ if (error && status != 416) {throw error}