feat: autofill name based on username or let it be empty
This commit is contained in:
parent
b2632995d6
commit
93d382f25f
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in New Issue