We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a97df0 commit 4b037ccCopy full SHA for 4b037cc
src/hooks/custom/SplitPdfHook.ts
@@ -1,4 +1,5 @@
1
import async from "async";
2
+import { v4 as uuidv4 } from 'uuid';
3
4
import {
5
AfterErrorContext,
@@ -96,7 +97,8 @@ export class SplitPdfHook
96
97
hookCtx: BeforeRequestContext,
98
request: Request
99
): Promise<Request> {
- const { operationID } = hookCtx;
100
+ const operationID = "partition-" + uuidv4();
101
+ hookCtx.operationID = operationID;
102
const requestClone = request.clone();
103
const formData = await requestClone.formData();
104
const splitPdfPage = stringToBoolean(
0 commit comments