From 79f1592536315b651ff98a8ef8a50891266521e9 Mon Sep 17 00:00:00 2001 From: GalTidhar <39020298+tatarco@users.noreply.github.com> Date: Fri, 29 Nov 2024 06:39:27 +0100 Subject: [PATCH] relaunch (#22) --- src/hooks/novu-custom-hook.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/novu-custom-hook.ts b/src/hooks/novu-custom-hook.ts index 63851d79..c78d3b5e 100644 --- a/src/hooks/novu-custom-hook.ts +++ b/src/hooks/novu-custom-hook.ts @@ -18,7 +18,7 @@ export class NovuCustomHook } async afterSuccess(_hookCtx: AfterSuccessContext, response: Response): Promise { - const jsonResponse = await response.json(); + const jsonResponse = await response.clone().json(); if (jsonResponse && Object.keys(jsonResponse).length === 1 && jsonResponse.data) { return new Response(JSON.stringify(jsonResponse.data), {