Skip to content

Commit

Permalink
fix(torii-sql): sql playground for slot
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Dec 6, 2024
1 parent c5e7d6b commit 40b665b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/torii/server/static/sql-playground.html
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@
ORDER BY m.name, p.cid;
`;
const response = await fetch(
"/sql?" + new URLSearchParams({ query: schemaQuery })
`${window.location.href}?` + new URLSearchParams({ query: schemaQuery })
);
if (!response.ok) throw new Error("Failed to fetch schema");
const data = await response.json();
Expand Down Expand Up @@ -508,7 +508,7 @@
const startTime = performance.now();
try {
const response = await fetch(
"/sql?" + new URLSearchParams({ query })
`${window.location.href}?` + new URLSearchParams({ query })
);
if (!response.ok) throw new Error(await response.text());
const data = await response.json();
Expand Down

0 comments on commit 40b665b

Please sign in to comment.