do not output created_at as it is unused

This commit is contained in:
Niki Wix Skaarup 2025-04-06 02:36:34 +02:00
parent 24d34597ff
commit ab55966598
Signed by: nikiskaarup
GPG key ID: FC2F1B116F6E788C

View file

@ -28,7 +28,7 @@ Bun.serve({
async GET(req) {
if (!isAuthenticated(req)) return unauthorizedResp();
const entries = await drizzleDB.select().from(entry).orderBy(desc(entry.updatedAt));
const entries = await drizzleDB.select({ id: entry.id, name: entry.name, finished: entry.finished, updated_at: entry.updatedAt}).from(entry).orderBy(desc(entry.updatedAt));
return new Response(JSON.stringify(entries), {
headers: { 'Content-Type': 'application/json' }