Skip to content

Commit

Permalink
ddeb
Browse files Browse the repository at this point in the history
  • Loading branch information
spcbfr committed Mar 26, 2024
1 parent c7a29d0 commit 6508806
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/pages/notes/[slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ const { slug } = Astro.params;
const date = new Date(Number(slug));
console.log(date);
const notes = await db
.select()
.from(Note)
.where(eq(Note.published, date))
.limit(1);
const notes = await db.select().from(Note);
const note = notes[0];
Expand Down

0 comments on commit 6508806

Please sign in to comment.