Skip to content

Commit

Permalink
relaunch (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
tatarco authored Nov 29, 2024
1 parent 2b36962 commit 79f1592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/novu-custom-hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class NovuCustomHook
}

async afterSuccess(_hookCtx: AfterSuccessContext, response: Response): Promise<Response> {
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), {
Expand Down

0 comments on commit 79f1592

Please sign in to comment.