fix create new entry endpoint
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user