Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't select all in events query
  • Loading branch information
regalijan committed Feb 14, 2024
1 parent 4ba23c2 commit 98b1911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/routes/events-team.tsx
Expand Up @@ -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();
Expand Down

0 comments on commit 98b1911

Please sign in to comment.