Don't select all in events query
This commit is contained in:
parent
4ba23c2ad5
commit
98b191167b
@ -16,7 +16,7 @@ import { type ReactNode } from "react";
|
||||
export async function loader({ context }: { context: RequestContext }) {
|
||||
const now = new Date();
|
||||
const monthEventList = await context.env.D1.prepare(
|
||||
"SELECT * FROM events WHERE month = ? AND year = ?;",
|
||||
"SELECT created_by, day, month, type, year FROM events WHERE month = ? AND year = ?;",
|
||||
)
|
||||
.bind(now.getUTCMonth() + 1, now.getUTCFullYear())
|
||||
.all();
|
||||
|
Loading…
x
Reference in New Issue
Block a user