fix(api): Pass archivedAt to list table response (#4275)

* fix(retention): switch data retention to be org-level

* fix lint

* cleanup mothership ran logs

* fix cleanup dispatcher

* fix ui flash for data retention settings

* fix lint

* remove raw sql string interprolation

* fix(api): return archivedAt for list tables route
This commit is contained in:
Theodore Li
2026-04-23 11:32:37 -07:00
committed by GitHub
parent 65972f2fa3
commit b86ebb35fd

View File

@@ -260,6 +260,12 @@ export const GET = withRouteHandler(async (request: NextRequest) => {
t.createdAt instanceof Date ? t.createdAt.toISOString() : String(t.createdAt),
updatedAt:
t.updatedAt instanceof Date ? t.updatedAt.toISOString() : String(t.updatedAt),
archivedAt:
t.archivedAt instanceof Date
? t.archivedAt.toISOString()
: t.archivedAt
? String(t.archivedAt)
: null,
}
}),
totalCount: tables.length,