From b502252811ab377ab9a0c35deb8311bd69e85e31 Mon Sep 17 00:00:00 2001 From: 240424 <240424@epvc.pt> Date: Fri, 12 Jun 2026 01:48:24 +0100 Subject: [PATCH] Fix playlist music style preference --- scratch_db_test.js | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/scratch_db_test.js b/scratch_db_test.js index 91a8d51..3a3403b 100644 --- a/scratch_db_test.js +++ b/scratch_db_test.js @@ -3,25 +3,18 @@ const supabaseKey = "sb_publishable_fazCCLmO7XjtryY28ePR-A_CS7aU6fF"; async function run() { try { - const res = await fetch(`${supabaseUrl}/rest/v1/trips`, { - method: "POST", + const res = await fetch(`${supabaseUrl}/rest/v1/profiles?limit=1`, { + method: "GET", headers: { apikey: supabaseKey, Authorization: `Bearer ${supabaseKey}`, - "Content-Type": "application/json", - Prefer: "return=representation" - }, - body: JSON.stringify({ - title: "Test Trip", - origin: "Lisbon", - destination: "Porto", - waypoints: [] - }) + "Content-Type": "application/json" + } }); const data = await res.json(); - console.log("INSERT_RESPONSE:", JSON.stringify(data, null, 2)); + console.log("PROFILES_QUERY_RESPONSE:", JSON.stringify(data, null, 2)); } catch (err) { - console.error("Error inserting:", err); + console.error("Error querying profiles:", err); } }