From 72934b672d3978f5a265489bce41f15a6bc11dd4 Mon Sep 17 00:00:00 2001 From: bytedream Date: Sun, 19 Oct 2025 14:17:37 +0200 Subject: [PATCH] fix report api created timestamp --- src/pages/api/users/[...uuid]/reports.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}` }))