mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Fix empty name on github profile for mailinglist
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user