From 3c3d596c9c57bcdd4e4d9957a23679f3e2b9450d Mon Sep 17 00:00:00 2001 From: haetae Date: Mon, 22 Sep 2025 16:34:59 -0400 Subject: [PATCH] add updates and fix shippy --- shippy.config.ts | 3 ++- src/components/Entries.astro | 10 ++++++---- src/components/Updates.astro | 4 ++++ 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/shippy.config.ts b/shippy.config.ts index 12e2eba..d7e0f02 100644 --- a/shippy.config.ts +++ b/shippy.config.ts @@ -4,6 +4,7 @@ export default { username: "haetae", remoteProjectPath: "/var/www/fujohost/haetae/", remoteDbPath: "/var/www/fujohost/haetae/guestbook.db", - dbDriver: "astro:db" + dbDriver: "astro:db", + privateKeyPath: "/home/ayowaddup/.ssh/shippy.id_ed25519" } }; \ No newline at end of file diff --git a/src/components/Entries.astro b/src/components/Entries.astro index db5e82c..ce33faa 100644 --- a/src/components/Entries.astro +++ b/src/components/Entries.astro @@ -1,9 +1,11 @@ --- -import { db, desc, Guestbook } from "astro:db"; +import { desc } from "drizzle-orm"; +import { db } from "db"; +import { guestbookTable } from "db/schema"; import formatDate from "@/utils/formatDate"; import pikachu from "$/images/portrait-0025.png"; -const entries = await db.select().from(Guestbook).orderBy(desc(Guestbook.published)); +const entries = await db.select().from(guestbookTable).orderBy(desc(guestbookTable.published)); ---
{entries.map(entry => ( @@ -16,7 +18,7 @@ const entries = await db.select().from(Guestbook).orderBy(desc(Guestbook.publish ? {entry.username} : {entry.username}} -