Skip to content

Commit af21e63

Browse files
committed
Fix: Convert Uint8Array to number[] for non-encoding path
- Also convert Uint8Array when not using encoding path - This fixes TypeScript compilation error at line 3139
1 parent e268876 commit af21e63

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3136,7 +3136,8 @@ export class BaileysStartupService extends ChannelStartupService {
31363136
// Only generate waveform for buffers, not URLs
31373137
if (Buffer.isBuffer(audioBuffer)) {
31383138
seconds = await this.getAudioDuration(audioBuffer);
3139-
waveform = await this.getAudioWaveform(audioBuffer);
3139+
const waveformU8 = await this.getAudioWaveform(audioBuffer);
3140+
waveform = Array.from(waveformU8);
31403141
}
31413142

31423143
return await this.sendMessageWithTyping<AnyMessageContent>(

0 commit comments

Comments
 (0)