Strip out datacenter code from report ids

This commit is contained in:
2025-10-23 15:34:36 -04:00
parent 25dc50e05c
commit 63b1926056

View File

@@ -183,9 +183,10 @@ export async function onRequestPost(context: RequestContext) {
const uploadUrlResults = await Promise.allSettled(uploadUrlPromises);
const reportId = `${Date.now()}${context.request.headers.get(
"cf-ray",
)}${crypto.randomUUID().replaceAll("-", "")}`;
const reportId = `${Date.now()}${context.request.headers
.get("cf-ray")
?.split("-")
?.at(0)}${crypto.randomUUID().replaceAll("-", "")}`;
const { current_user: currentUser } = context.data;
if (filesToProcess.length)