Skip to content

Commit

Permalink
fix(torii-sql): sql playground for slot (dojoengine#2779)
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Dec 9, 2024
1 parent 751188f commit 7d4392c
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 7d4392c

Please sign in to comment.