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 uploadUrlResults = await Promise.allSettled(uploadUrlPromises);
|
||||||
|
|
||||||
const reportId = `${Date.now()}${context.request.headers.get(
|
const reportId = `${Date.now()}${context.request.headers
|
||||||
"cf-ray",
|
.get("cf-ray")
|
||||||
)}${crypto.randomUUID().replaceAll("-", "")}`;
|
?.split("-")
|
||||||
|
?.at(0)}${crypto.randomUUID().replaceAll("-", "")}`;
|
||||||
|
|
||||||
const { current_user: currentUser } = context.data;
|
const { current_user: currentUser } = context.data;
|
||||||
if (filesToProcess.length)
|
if (filesToProcess.length)
|
||||||
|
|||||||
Reference in New Issue
Block a user