This commit is contained in:
Med Marrouchi 2025-06-26 17:41:14 +01:00 committed by GitHub
commit 6ba922e8a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -631,7 +631,7 @@ export class BotService {
'No global fallback block defined, sending a message ...',
err,
);
const globalFallbackBlock = {
const globalFallbackBlock: BlockFull = {
id: 'global-fallback',
name: 'Global Fallback',
message: settings.chatbot_settings.fallback_message,
@ -645,7 +645,12 @@ export class BotService {
createdAt: new Date(),
updatedAt: new Date(),
attachedBlock: null,
} as any as BlockFull;
trigger_labels: [],
nextBlocks: [],
category: null,
outcomes: [],
trigger_channels: [],
};
const envelope = await this.blockService.processMessage(
globalFallbackBlock,