mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-18 19:32:21 -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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user