feat: autofill name based on username or let it be empty

This commit is contained in:
Divyaswor Makai 2024-12-07 14:57:08 +05:45
parent b2632995d6
commit 93d382f25f
1 changed files with 9 additions and 1 deletions

View File

@ -408,9 +408,17 @@ export class IntegrationsController {
);
}
let validName = name;
if (!validName) {
if (username) {
validName = username.split('.')[0];
} else {
validName = '';
}
}
return this._integrationService.createOrUpdateIntegration(
org.id,
name,
validName,
picture,
'social',
String(id),