mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
Update api/src/chat/services/block.service.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
b9acf9d0c7
commit
bcacdec406
@ -784,10 +784,7 @@ export class BlockService extends BaseService<
|
|||||||
* @returns The fallback options for the block, or default options if not specified.
|
* @returns The fallback options for the block, or default options if not specified.
|
||||||
*/
|
*/
|
||||||
getFallbackOptions<T extends BlockStub>(block: T): FallbackOptions {
|
getFallbackOptions<T extends BlockStub>(block: T): FallbackOptions {
|
||||||
const fallbackOptions: FallbackOptions = block.options?.fallback
|
return block.options?.fallback ?? getDefaultFallbackOptions();
|
||||||
? block.options.fallback
|
|
||||||
: getDefaultFallbackOptions();
|
|
||||||
return fallbackOptions;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user