mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-28 03:00:29 -04:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user