mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-10 18:39:38 -06:00
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:
parent
9beb38d807
commit
9ab6f9ad76
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user