A full-featured CRM built with React, shadcn/ui, and Supabase.
Fix prettier issues
fzaninotto14dd45f2dce0
diff --git a/supabase/functions/_shared/db.ts b/supabase/functions/_shared/db.tsindex 20bd2567..79961e6e 100644--- a/supabase/functions/_shared/db.ts+++ b/supabase/functions/_shared/db.ts@@ -170,7 +170,8 @@ class DenoPostgresConnection implements DatabaseConnection {// Create connection pool// Use SUPABASE_DB_URL if available (production), otherwise fall back to local dev connection string-const connectionString = Deno.env.get("SUPABASE_DB_URL") ||+const connectionString =+ Deno.env.get("SUPABASE_DB_URL") ||"postgresql://postgres:postgres@db:5432/postgres";const pool = new Pool(connectionString, 1); // Single connection for edge functionsdiff --git a/supabase/functions/mergeContacts/index.ts b/supabase/functions/mergeContacts/index.tsindex f47d35e9..7b1bad03 100644--- a/supabase/functions/mergeContacts/index.ts+++ b/supabase/functions/mergeContacts/index.ts@@ -75,13 +75,19 @@ function mergeContactData(winner: Contact, loser: Contact) {};}-async function mergeContacts(loserId: number, winnerId: number, userId: string) {+async function mergeContacts(+ loserId: number,+ winnerId: number,+ userId: string,+) {try {return await db.transaction().execute(async (trx) => {// Enable RLS by switching to authenticated role and setting user contextawait trx.executeQuery(CompiledQuery.raw("SET LOCAL ROLE authenticated"));await trx.executeQuery(- CompiledQuery.raw(`SELECT set_config('request.jwt.claim.sub', '${userId}', true)`)+ CompiledQuery.raw(+ `SELECT set_config('request.jwt.claim.sub', '${userId}', true)`,+ ),);// 1. Fetch both contacts