fix: remove unused page load script
All checks were successful
deploy to cloudflare pages / deploy (push) Successful in 35s
All checks were successful
deploy to cloudflare pages / deploy (push) Successful in 35s
This commit is contained in:
parent
8275253adf
commit
de5600899d
1 changed files with 0 additions and 21 deletions
|
@ -1,21 +0,0 @@
|
|||
import { error } from "@sveltejs/kit";
|
||||
import type { PageServerLoad } from "./$types";
|
||||
|
||||
export const load: PageServerLoad = async ({ platform }) => {
|
||||
const db = platform?.env?.TCL_GUESSR_D1 ?? null;
|
||||
if (db === null) error(500, "could not access d1");
|
||||
|
||||
const statement = db.prepare(
|
||||
"SELECT game.id, game.total_score, user.name FROM game INNER JOIN user ON user.id = game.user_id WHERE game.mode = ? ORDER BY game.total_score DESC, game.time ASC LIMIT 10",
|
||||
);
|
||||
|
||||
const { results: easy } = await statement.bind("easy").all();
|
||||
const { results: hard } = await statement.bind("hard").all();
|
||||
const { results: miguel } = await statement.bind("extreme demon ultra miguel").all();
|
||||
|
||||
return {
|
||||
"EXTREME DEMON ULTRA MIGUEL DE LA MORT QUI TUE": miguel,
|
||||
Difficile: hard,
|
||||
Facile: easy,
|
||||
};
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue