From b1952edb84ee00fc952e853716096d857b401430 Mon Sep 17 00:00:00 2001 From: Felix Schulze Date: Tue, 4 Mar 2025 17:59:19 +0100 Subject: [PATCH] fixes --- lib/actions.ts | 2 +- lib/listmonk.ts | 6 +++--- package-lock.json | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/actions.ts b/lib/actions.ts index 884e479..4e66c5f 100644 --- a/lib/actions.ts +++ b/lib/actions.ts @@ -15,7 +15,7 @@ export async function signupFormSubmit(data: z.infer): email: data.email, name: data.name, status: "enabled", - lists: [6], + lists: [3], attribs: { dob: data.dob.toISOString().split("T")[0], }, diff --git a/lib/listmonk.ts b/lib/listmonk.ts index 3f90a8d..f4e08e1 100644 --- a/lib/listmonk.ts +++ b/lib/listmonk.ts @@ -26,11 +26,11 @@ async function listmonk(data: listmonkData): Promise { try { const response = await fetch(`${listmonkUrl}subscribers`, options); if (!response.ok) { - return "Error. please try again soon."; + return "Error. Please try again soon."; } - return "Thanks for signing up!"; + return "Thanks for signing up! Please check your email for a confirmation."; } catch (error) { - return "Error. please try again soon."; + return "Error. Please contact us."; } } diff --git a/package-lock.json b/package-lock.json index d4f9369..0142bd0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3172,9 +3172,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001655", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001655.tgz", - "integrity": "sha512-jRGVy3iSGO5Uutn2owlb5gR6qsGngTw9ZTb4ali9f3glshcNmJ2noam4Mo9zia5P9Dk3jNNydy7vQjuE5dQmfg==", + "version": "1.0.30001702", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001702.tgz", + "integrity": "sha512-LoPe/D7zioC0REI5W73PeR1e1MLCipRGq/VkovJnd6Df+QVqT+vT33OXCp8QUd7kA7RZrHWxb1B36OQKI/0gOA==", "funding": [ { "type": "opencollective",