mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-09 09:59:40 -06:00
style: clean up code formatting for linkPreview implementation
- Remove unnecessary trailing whitespace - Use shorthand property syntax for linkPreview parameter - Apply ESLint formatting standards - Maintain code consistency and readability
This commit is contained in:
parent
1be58c8487
commit
4f13a8ac28
@ -130,7 +130,7 @@ export class EvolutionBotService extends BaseChatbotService<EvolutionBot, Evolut
|
||||
|
||||
let message = response?.data?.message;
|
||||
const rawLinkPreview = response?.data?.linkPreview;
|
||||
|
||||
|
||||
// Validate linkPreview is boolean and default to true for backward compatibility
|
||||
const linkPreview = typeof rawLinkPreview === 'boolean' ? rawLinkPreview : true;
|
||||
|
||||
@ -152,7 +152,7 @@ export class EvolutionBotService extends BaseChatbotService<EvolutionBot, Evolut
|
||||
number: remoteJid.split('@')[0],
|
||||
delay: settings?.delayMessage || 1000,
|
||||
text: message,
|
||||
linkPreview: linkPreview, // Always boolean, defaults to true
|
||||
linkPreview, // Always boolean, defaults to true
|
||||
},
|
||||
false,
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user