From b86ebb35fdcc782206801e1a4d669c1e5609399a Mon Sep 17 00:00:00 2001 From: Theodore Li Date: Thu, 23 Apr 2026 11:32:37 -0700 Subject: [PATCH] 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 --- apps/sim/app/api/table/route.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/sim/app/api/table/route.ts b/apps/sim/app/api/table/route.ts index c18a0ca87e..2925cfe5dc 100644 --- a/apps/sim/app/api/table/route.ts +++ b/apps/sim/app/api/table/route.ts @@ -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,