do not output created_at as it is unused
This commit is contained in:
parent
24d34597ff
commit
ab55966598
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ Bun.serve({
|
||||||
async GET(req) {
|
async GET(req) {
|
||||||
if (!isAuthenticated(req)) return unauthorizedResp();
|
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), {
|
return new Response(JSON.stringify(entries), {
|
||||||
headers: { 'Content-Type': 'application/json' }
|
headers: { 'Content-Type': 'application/json' }
|
||||||
|
|
Loading…
Add table
Reference in a new issue