diff --git a/apps/backend/src/api/routes/integrations.controller.ts b/apps/backend/src/api/routes/integrations.controller.ts index e19e8668..4beb234b 100644 --- a/apps/backend/src/api/routes/integrations.controller.ts +++ b/apps/backend/src/api/routes/integrations.controller.ts @@ -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),