Skip to content

Commit 4f13a8a

Browse files
committed
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
1 parent 1be58c8 commit 4f13a8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/integrations/chatbot/evolutionBot/services/evolutionBot.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export class EvolutionBotService extends BaseChatbotService<EvolutionBot, Evolut
130130

131131
let message = response?.data?.message;
132132
const rawLinkPreview = response?.data?.linkPreview;
133-
133+
134134
// Validate linkPreview is boolean and default to true for backward compatibility
135135
const linkPreview = typeof rawLinkPreview === 'boolean' ? rawLinkPreview : true;
136136

@@ -152,7 +152,7 @@ export class EvolutionBotService extends BaseChatbotService<EvolutionBot, Evolut
152152
number: remoteJid.split('@')[0],
153153
delay: settings?.delayMessage || 1000,
154154
text: message,
155-
linkPreview: linkPreview, // Always boolean, defaults to true
155+
linkPreview, // Always boolean, defaults to true
156156
},
157157
false,
158158
);

0 commit comments

Comments
 (0)