Files
lagos-back/scratch.js
T
mstfyldz 7915571130 fix: remove hardcoded old Supabase domain and leaked service_role key from scratch.js
Supabase migrated from the sslip.io address to https://supa.ayris.tech;
scratch.js now reads SUPABASE_URL/SUPABASE_SERVICE_ROLE_KEY from env instead
of hardcoding the stale host and a plaintext secret.
2026-08-10 13:49:10 +03:00

9 lines
359 B
JavaScript

const { createClient } = require('@supabase/supabase-js');
const supabase = createClient(process.env.SUPABASE_URL, process.env.SUPABASE_SERVICE_ROLE_KEY);
async function test() {
const { data, error } = await supabase.from('cases').select('*, documents(id)');
console.log('Error:', error);
console.log('Data:', JSON.stringify(data, null, 2));
}
test();