Strip out datacenter code from report ids
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user