Skip to content

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

fix: don't await db request.

thorwebdev6138a9aab253
diff --git a/apps/www/supabase/functions/lw7-ticket-og/handler.tsx b/apps/www/supabase/functions/lw7-ticket-og/handler.tsx
index e9a09e65316..e9c868f5cdb 100644
--- a/apps/www/supabase/functions/lw7-ticket-og/handler.tsx
+++ b/apps/www/supabase/functions/lw7-ticket-og/handler.tsx
@@ -26,19 +26,17 @@ export async function handler(req: Request) {
Deno.env.get('SUPABASE_SERVICE_ROLE_KEY') ?? ''
)
if (userAgent?.toLocaleLowerCase().includes('twitter')) {
- const { error } = await supabaseAdminClient
+ supabaseAdminClient
.from('lw7_tickets')
.update({ sharedOnTwitter: 'now' })
.eq('username', username)
.is('sharedOnTwitter', null)
- if (error) console.log(error.message)
} else if (userAgent?.toLocaleLowerCase().includes('linkedin')) {
- const { error } = await supabaseAdminClient
+ supabaseAdminClient
.from('lw7_tickets')
.update({ sharedOnLinkedIn: 'now' })
.eq('username', username)
.is('sharedOnLinkedIn', null)
- if (error) console.log(error.message)
}
// Try to get image from Supabase Storage CDN.