From fd74c1eadb6d5e109a63a50c3f36737940fc02c8 Mon Sep 17 00:00:00 2001 From: Ken Powers Date: Wed, 4 Dec 2024 23:46:03 -0500 Subject: [PATCH] Fix gateway LISTMONK_INTERNAL_URL --- services/gateway/src/schema/types/user.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/services/gateway/src/schema/types/user.ts b/services/gateway/src/schema/types/user.ts index 67b15512..66cd4a18 100644 --- a/services/gateway/src/schema/types/user.ts +++ b/services/gateway/src/schema/types/user.ts @@ -373,10 +373,10 @@ builder.mutationFields((t) => ({ if (args.subscribeToNewsletter) { const form = new FormData(); form.set('email', email); - await fetch( - envariant('VITE_LISTMONK_INTERNAL_URL') + '/subscription/form', - { method: 'POST', body: form }, - ); + await fetch(envariant('LISTMONK_INTERNAL_URL') + '/subscription/form', { + method: 'POST', + body: form, + }); } return user;