diff --git a/src/pages/api/users/[...uuid]/reports.ts b/src/pages/api/users/[...uuid]/reports.ts index 05f964f..0c25e55 100644 --- a/src/pages/api/users/[...uuid]/reports.ts +++ b/src/pages/api/users/[...uuid]/reports.ts @@ -23,7 +23,7 @@ export const GET = externalApi({ to_self: toSelf.map((report) => ({ reporter: report.reporter?.uuid ?? null, reason: report.reason, - created: report.createdAt, + created: report.createdAt?.getTime() ?? null, status: report.status?.status ?? null, url: `${BASE_PATH}/report/${report.urlHash}` }))