fix(log): migrate db.execute usage to match latest drizzle
Build and Push Image / build-backend (push) Successful in 45s
Build and Push Image / build-frontend (push) Successful in 1m17s
Build and Push Image / push (push) Successful in 45s

This commit is contained in:
2026-06-09 18:18:27 +07:00 Unverified
parent dfac72932a
commit 536bf4cb81
+2 -2
View File
@@ -4,7 +4,7 @@ import { auditLog, user } from "@/lib/db/schema";
import AuditLogViewer from "./client";
export default async function AuditLogViewerPage() {
const { rows: logs } = (await db.execute(sql`
const logs = (await db.execute(sql`
SELECT *
FROM (
SELECT *
@@ -13,7 +13,7 @@ export default async function AuditLogViewerPage() {
LIMIT 1000
) t
ORDER BY id ASC;
`)) as unknown as { rows: (typeof auditLog.$inferSelect)[] };
`)) as (typeof auditLog.$inferSelect)[];
const users = await db
.select({ name: user.name, email: user.email })
.from(user);