From b003f6b1caa2b1811feacaeaa67700adb85e07b5 Mon Sep 17 00:00:00 2001 From: ernstmul Date: Mon, 28 Oct 2024 09:31:46 +0100 Subject: [PATCH] Fix empty name on github profile for mailinglist --- src/lib/sdk/billing.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/lib/sdk/billing.ts b/src/lib/sdk/billing.ts index 66b2403cc..ecc2e1a54 100644 --- a/src/lib/sdk/billing.ts +++ b/src/lib/sdk/billing.ts @@ -711,10 +711,13 @@ export class Billing { async setMailinglist(listId: string, name: string, email: string): Promise { const path = `/mailinglists/${listId}`; const uri = new URL('https://growth.appwrite.io/v1' + path); - const params = { - email, - name - }; + const params = + name !== '' + ? { + email, + name + } + : { email }; return await this.client.call( 'POST',