We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d07ed2b + 515ff8a commit f8486e6Copy full SHA for f8486e6
apps/backend/src/api/routes/integrations.controller.ts
@@ -441,9 +441,17 @@ export class IntegrationsController {
441
);
442
}
443
444
+ let validName = name;
445
+ if (!validName) {
446
+ if (username) {
447
+ validName = username.split('.')[0] ?? username;
448
+ } else {
449
+ validName = `Channel_${String(id).slice(0, 8)}`;
450
+ }
451
452
return this._integrationService.createOrUpdateIntegration(
453
org.id,
- name,
454
+ validName.trim(),
455
picture,
456
'social',
457
String(id),
0 commit comments