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

Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
This commit is contained in:
nolramaf 2025-09-01 19:50:08 -03:00 committed by GitHub
parent 9beb38d807
commit 9ab6f9ad76
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1261,7 +1261,9 @@ export class BaileysStartupService extends ChannelStartupService {
if (this.configService.get<S3>('S3').ENABLE) {
try {
if (isVideo && !this.configService.get<S3>('S3').SAVE_VIDEO) {
throw new Error('Video upload is disabled.');
this.logger.warn('Video upload is disabled. Skipping video upload.');
// Skip video upload by returning early from this block
return;
}
const message: any = received;