update: update code wrt rabbit ai

This commit is contained in:
Divyaswor Makai 2024-12-07 15:14:09 +05:45
parent 93d382f25f
commit 515ff8afbb
1 changed files with 3 additions and 3 deletions

View File

@ -411,14 +411,14 @@ export class IntegrationsController {
let validName = name;
if (!validName) {
if (username) {
validName = username.split('.')[0];
validName = username.split('.')[0] ?? username;
} else {
validName = '';
validName = `Channel_${String(id).slice(0, 8)}`;
}
}
return this._integrationService.createOrUpdateIntegration(
org.id,
validName,
validName.trim(),
picture,
'social',
String(id),