Fix empty name on github profile for mailinglist

This commit is contained in:
ernstmul
2024-10-28 09:31:46 +01:00
parent fd45da45cd
commit b003f6b1ca
+7 -4
View File
@@ -711,10 +711,13 @@ export class Billing {
async setMailinglist(listId: string, name: string, email: string): Promise<void> {
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',