diff --git a/src/App.svelte b/src/App.svelte index d8989d8..33926c1 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -22,8 +22,6 @@ const name = form.querySelector("#form-name").value; const email = form.querySelector("#form-email").value; - console.log(name, email); - const res = await fetch( `https://odoo.logos.co/website_mass_mailing/subscribe2`, { @@ -35,8 +33,8 @@ jsonrpc: "2.0", method: "call", params: { - email: email, - name: name, + value: email, + name: name || "", list_id: 12, subscription_type: "email", }, diff --git a/src/components/Input.svelte b/src/components/Input.svelte index 0a8c8ce..4998e39 100644 --- a/src/components/Input.svelte +++ b/src/components/Input.svelte @@ -16,8 +16,6 @@ if ($history.length === 0) { const command = commands["banner"] as () => string; - console.log("command", command); - if (command) { const output = command(); console.log("output", output); diff --git a/src/utils/commands.ts b/src/utils/commands.ts index 82a5635..f699690 100644 --- a/src/utils/commands.ts +++ b/src/utils/commands.ts @@ -13,7 +13,7 @@ export const commands: Record< const htmlString = ``;