Fixed media download path

This commit is contained in:
microprocessgit 2024-04-25 10:14:14 -03:00
parent 283e0e4bea
commit e9c34644b3
2 changed files with 2 additions and 1 deletions

View File

@ -36,7 +36,7 @@ import makeWASocket, {
WAPresence,
WASocket,
} from '@whiskeysockets/baileys';
import { downloadMediaMessageDto } from '../dto/chat.dto';
import { downloadMediaMessageDto } from '../../dto/chat.dto';
import { Label } from '@whiskeysockets/baileys/lib/Types/Label';
import { LabelAssociation } from '@whiskeysockets/baileys/lib/Types/LabelAssociation';
import axios from 'axios';

View File

@ -4,6 +4,7 @@ import EventEmitter2 from 'eventemitter2';
import FormData from 'form-data';
import fs from 'fs/promises';
import { getMIMEType } from 'node-mime-types';
import { downloadMediaMessageDto } from '../../dto/chat.dto';
import { ConfigService, Database, WaBusiness } from '../../../config/env.config';
import { BadRequestException, InternalServerErrorException } from '../../../exceptions';