fix create new entry endpoint

This commit is contained in:
2026-02-17 12:36:02 +13:00
parent 89d2aaca75
commit c428aae077

View File

@@ -9,7 +9,6 @@ export async function POST({ request }) {
try {
const body = await request.json();
const entry: typeof entryTable.$inferInsert = body
entry.date = new Date(body.date)
await db.insert(entryTable).values(entry)